get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2226545/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2226545,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2226545/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260422-b4-amlogic-sysreset-capsules-v2-1-e04e4c9e69f9@postmarketos.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260422-b4-amlogic-sysreset-capsules-v2-1-e04e4c9e69f9@postmarketos.org>",
    "date": "2026-04-22T15:39:04",
    "name": "[v2,1/4] arm: mach-meson: provide reset_cpu only when SYSRESET is disabled",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "fbd6f620f2df0b5e5f464b25bb6afc4f73eafd02",
    "submitter": {
        "id": 90020,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/90020/?format=api",
        "name": "Ferass El Hafidi",
        "email": "funderscore@postmarketos.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260422-b4-amlogic-sysreset-capsules-v2-1-e04e4c9e69f9@postmarketos.org/mbox/",
    "series": [
        {
            "id": 501034,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501034/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501034",
            "date": "2026-04-22T15:39:04",
            "name": "Enable EFI Capsule on Disk on Libre Computer LePotato & LaFrite",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/501034/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226545/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226545/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=postmarketos.org header.i=@postmarketos.org\n header.a=rsa-sha256 header.s=key1 header.b=rpKaJtJ2;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=postmarketos.org header.i=@postmarketos.org\n header.b=\"rpKaJtJ2\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=postmarketos.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=funderscore@postmarketos.org"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g13Lh1Zxjz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 01:39:40 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 627B884319;\n\tWed, 22 Apr 2026 17:39:31 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 8730584319; Wed, 22 Apr 2026 17:39:29 +0200 (CEST)",
            "from out-179.mta1.migadu.com (out-179.mta1.migadu.com\n [95.215.58.179])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 9A8F5842E6\n for <u-boot@lists.denx.de>; Wed, 22 Apr 2026 17:39:27 +0200 (CEST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "X-Report-Abuse": "Please report any abuse attempt to abuse@migadu.com and\n include these headers.",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org;\n s=key1; t=1776872367;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=b7YPzW7ar84iuQsUv9oCtS64vTevJoRF13hjgsyAL9E=;\n b=rpKaJtJ2RwTCaxR8s/YNt3NFlNKGKhi5lgHe1+UZJ091uUcVFXFkKJ36vBkN2XIR/HuSLs\n /Loxn5IDqL9zI2TrgAV92gVzX55iu4W1D0V+kL906mjRcXpqibkFH8LbqjC7mtxriXAPH8\n OpfoRhxX632N3uyux1sEUnUAKfIxNLAamFu1f96GEe/L4kw5TDDrN9v/sp/z8y3Kd5CrQ+\n YCcq+ZMG1qbDGABurqYVbPbvjvdvzdohURvQxGCZ2IdBZo2ARxhVbO333xh/CXEQUshBA7\n zmgY0jzNpT1HFpt4o1h6cj8jzb5gY8+VmbNr0boy+0cjdSw0QKKG5Vg0ruo6Bw==",
        "From": "Ferass El Hafidi <funderscore@postmarketos.org>",
        "Date": "Wed, 22 Apr 2026 15:39:04 +0000",
        "Subject": "[PATCH v2 1/4] arm: mach-meson: provide reset_cpu only when\n SYSRESET is disabled",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "\n <20260422-b4-amlogic-sysreset-capsules-v2-1-e04e4c9e69f9@postmarketos.org>",
        "References": "\n <20260422-b4-amlogic-sysreset-capsules-v2-0-e04e4c9e69f9@postmarketos.org>",
        "In-Reply-To": "\n <20260422-b4-amlogic-sysreset-capsules-v2-0-e04e4c9e69f9@postmarketos.org>",
        "To": "u-boot-amlogic@groups.io, u-boot@lists.denx.de",
        "Cc": "Tom Rini <trini@konsulko.com>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Evgeny Bachinin <EABachinin@salutedevices.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Ferass El Hafidi <funderscore@postmarketos.org>",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=1347;\n i=funderscore@postmarketos.org; h=from:subject:message-id;\n bh=IoO1gOKnt0cbf2RWK6vS8f3st5C63IkFCn5XCxBr6JE=;\n b=owEBbQKS/ZANAwAKAYSvy9DXiZoDAcsmYgBp6OurM30dyG39f/ZDeIGGGBjFXuxGpZObzaIXB\n /BjzOEaCKGJAjMEAAEKAB0WIQQDAbw3+1VcrP15i+6Er8vQ14maAwUCaejrqwAKCRCEr8vQ14ma\n AxKED/4rAbnk0qgBNPlLNeLi5/57N4/kU4nHk0iEAagOwidYekS0jJLgodX2OcAryYmvhjWMbXE\n NOytOT5BlTLM4q3V3qmumQYGj3/NebzXSLuilFR43c3tnHWtepRh881YkOQBNLYW5cQe9fkyXUD\n RduLc/sYhk7CvyRo1+P/9FNft+GHyb6F2bUbq4jRmXIv33umoCf1MSJx6kLnpcfvxB8BGjFwXzY\n aHQReFwrQm65gvgXyc7O4NzPcG1w7eB80nlvPShlrJHnzlC9fYsS7K7wyhMNa+Ap19KnC+Mlugo\n Fd98uMfUzGxv0XVQVm227diosKIGJ00L38BjYW0ctwe6VNSAI6aWTWvTMhddxcfnJ7vadmOik22\n kJuLorZRbpLbavhY7TteDHq/a9dLrOwDGf5vF7LAygPo9Z+PFNPz0xnVkGI1Bk9/CDJ6C2fo9Iv\n 5w4mfOPDvP9NmDLcGoMMH+7Wsl0g8izXGamyqKMLYOGwGqzgatB4YFlYAjOY/pfeB6skuHVuJvl\n S6QEOCAZkRE63FQg8INwdshqzqreJyWXXVTAU/UuvH5u1uJugsDRbBcnPYW43slbgzO7yy3Q8e4\n wxMLahbQb28J0LF2M5JRHmmnZmOymXkJ1rTDcjVKnSfj8nid7Cq71golDip9Mc1lLb7bv2c8bp1\n 8UIolNoxrx+sLeA==",
        "X-Developer-Key": "i=funderscore@postmarketos.org; a=openpgp;\n fpr=0301BC37FB555CACFD798BEE84AFCBD0D7899A03",
        "X-Migadu-Flow": "FLOW_OUT",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "This is in preparation of enabling SYSRESET across all Amlogic boards by\ndefault. SYSRESET brings its own reset_cpu implementation which will\nconflict with the one defined in board-common.c.\nSPL however will not have SYSRESET enabled (due to overhead in the final\nimage, as we have very little space to work with), and thus will still\nneed that reset_cpu to be defined. Furthermore, some boards do not enable\nPSCI support in U-Boot, so they may still need this implementation.\nGuard reset_cpu inside #ifdef to only compile it in when SYSRESET is not\nenabled.\n\nSigned-off-by: Ferass El Hafidi <funderscore@postmarketos.org>\n---\n arch/arm/mach-meson/board-common.c | 6 ++----\n 1 file changed, 2 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c\nindex a5afc2d75c0..c34b81e5e78 100644\n--- a/arch/arm/mach-meson/board-common.c\n+++ b/arch/arm/mach-meson/board-common.c\n@@ -155,16 +155,14 @@ int board_late_init(void)\n \treturn meson_board_late_init();\n }\n \n+#if defined(CONFIG_XPL) || !CONFIG_IS_ENABLED(SYSRESET)\n void reset_cpu(void)\n {\n-#if CONFIG_SPL_BUILD\n \t/*\n \t * We do not have BL31 running yet, so no PSCI.\n \t * Instead, let the watchdog reset the board.\n \t */\n \tfor (;;)\n \t\t;\n-#else\n-\tpsci_system_reset();\n-#endif\n }\n+#endif\n",
    "prefixes": [
        "v2",
        "1/4"
    ]
}