Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.0/patches/2221222/?format=api
{ "id": 2221222, "url": "http://patchwork.ozlabs.org/api/1.0/patches/2221222/?format=api", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.0/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": "<20260408-b4-amlogic-sysreset-capsules-v1-1-6f3386eb5124@postmarketos.org>", "date": "2026-04-08T20:30:12", "name": "[1/4] arm: mach-meson: move reset_cpu to spl only", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "a4aa100c31f8ddbc521160e0bb729809871f7e85", "submitter": { "id": 90020, "url": "http://patchwork.ozlabs.org/api/1.0/people/90020/?format=api", "name": "Ferass El Hafidi", "email": "funderscore@postmarketos.org" }, "delegate": { "id": 84350, "url": "http://patchwork.ozlabs.org/api/1.0/users/84350/?format=api", "username": "narmstrong", "first_name": "Neil", "last_name": "Armstrong", "email": "narmstrong@baylibre.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260408-b4-amlogic-sysreset-capsules-v1-1-6f3386eb5124@postmarketos.org/mbox/", "series": [ { "id": 499209, "url": "http://patchwork.ozlabs.org/api/1.0/series/499209/?format=api", "date": "2026-04-08T20:30:13", "name": "Enable EFI Capsule on Disk on Libre Computer LePotato & LaFrite", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499209/mbox/" } ], "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221222/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=kgikEG/b;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=\"kgikEG/b\";\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\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4frZTD4hbJz1xv0\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 06:30:56 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9777A83CF5;\n\tWed, 8 Apr 2026 22:30:30 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id D433F8412A; Wed, 8 Apr 2026 22:30:28 +0200 (CEST)", "from out-170.mta0.migadu.com (out-170.mta0.migadu.com\n [91.218.175.170])\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 6B73A83936\n for <u-boot@lists.denx.de>; Wed, 8 Apr 2026 22:30:23 +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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_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=1775680222;\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=3o/pmBhdixVCYMjWeWNQLKdT65F5jUltcwhUPb0xY1s=;\n b=kgikEG/bIQKz3kSG6cGQsjQFjMqS1wiRhqc2GrXhXoq4eLmndy/mcAm/lIwatBWy8ag9P4\n YL22CJwLcAvwmlgfllIYkjBqF2Iq577s/JkGBKyvJW886ZWafPdX5eQc3V0B//Fl7JHoum\n K0UNrsJI8F+CMBDl1EmOLAwRNSz7Jskm1qAYJfuBO9OcdMuwyfRwmsqioYvcxJCFtR6ziY\n UOIIKr0r1NM15f3Vmjj1UKPF6Pan/X1NqHRWQ5elZBKB3xeHpLvMEIx9caqxooNUtSem7G\n UBmKcZ0iYcbAQGVP9fNsWDf4ZrP7GqQ5VLehARWFGLoEQmOOBrxyHRXS3GsXJg==", "From": "Ferass El Hafidi <funderscore@postmarketos.org>", "Date": "Wed, 08 Apr 2026 20:30:12 +0000", "Subject": "[PATCH 1/4] arm: mach-meson: move reset_cpu to spl only", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "\n <20260408-b4-amlogic-sysreset-capsules-v1-1-6f3386eb5124@postmarketos.org>", "References": "\n <20260408-b4-amlogic-sysreset-capsules-v1-0-6f3386eb5124@postmarketos.org>", "In-Reply-To": "\n <20260408-b4-amlogic-sysreset-capsules-v1-0-6f3386eb5124@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=1663;\n i=funderscore@postmarketos.org; h=from:subject:message-id;\n bh=SyLmiOFA/rtoLHgU5y2gqAyhDPi3vYUVWYWi4tktsFA=;\n b=owEBbQKS/ZANAwAKAYSvy9DXiZoDAcsmYgBp1rrbrkGYeWqQxUfJYbYfrRNX1p0htNuwW8qoS\n /DIJI2Q+1aJAjMEAAEKAB0WIQQDAbw3+1VcrP15i+6Er8vQ14maAwUCada62wAKCRCEr8vQ14ma\n A1mID/9SqV89kODo3qvOCZCKe8h/CIFdP857tUyXBrKpzhsxxQqWmqMiSfuyAZAfX+M2qinGB79\n CWAH6pUjWPfk8t/MzpZKO35YD0RtIYUN2ZUZp2GwAKic9GSJihCoEWgKhA1eO/i4BxbLEx1YCXk\n 8TmCv3VUCCAkeRDfVoshJNSAB8qROUxOXRcN2c1LAdp+NGn79097okkj53j7KdCF7ADKqxQdsTm\n 32mTursQRvjJy5TQg+nmXQTgJhX/hUJcAEtCu6guYZhKMD0o5BX6qqquCwPkbc85UJOCTu3UxYn\n bwskhrzpMytDUimUbwb0DOVAccKCuYQCrLncn0cZtGXxj14KruqVEPHdmTVG1Jg1w9wmDBbQ6ym\n XX8eu6qcicolTKrCb/vMjfRhYjOHCbVXQwBgamLG68OksidMyM93V5vTinXbQyabA+5SOCLhrZh\n MR7uVPnbQhy2M2jwwwvuSbgLAltLok7WpDXtcYQemXVueO1gGFx4tmEfJLu4po09eXrvdkoB9d5\n 41X9tV9VezM2bNhfwTbg56HoRzr9Y5B/38duQDQgauK4V6ElHuzU6VnzSnBPHUtE8WyBeNCV0kY\n 0NcAABEOqhsdaNdjNxHSuo89vjZSOtYH+Fvb17uMog3vlLF0lQ2fUThyEqJyzJdoMev70a5PFG4\n FP2bkrnpvu+FRHw==", "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. SPL however will not\nhave SYSRESET enabled (due to overhead in the final image, as we have\nvery little space to work with), and thus will still need that reset_cpu\nto be defined, so move it to spl.c so it is only built for SPL.\n\nSigned-off-by: Ferass El Hafidi <funderscore@postmarketos.org>\n---\n arch/arm/mach-meson/board-common.c | 14 --------------\n arch/arm/mach-meson/spl.c | 10 ++++++++++\n 2 files changed, 10 insertions(+), 14 deletions(-)", "diff": "diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c\nindex a5afc2d75c0..24dcafd30ac 100644\n--- a/arch/arm/mach-meson/board-common.c\n+++ b/arch/arm/mach-meson/board-common.c\n@@ -154,17 +154,3 @@ int board_late_init(void)\n \n \treturn meson_board_late_init();\n }\n-\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-}\ndiff --git a/arch/arm/mach-meson/spl.c b/arch/arm/mach-meson/spl.c\nindex 28a63f39d36..ec566849667 100644\n--- a/arch/arm/mach-meson/spl.c\n+++ b/arch/arm/mach-meson/spl.c\n@@ -121,3 +121,13 @@ void board_init_f(ulong dummy)\n \tclrbits_32(GX_WDT_CTRL_REG, (1 << 18) | (1 << 25));\n #endif\n }\n+\n+void reset_cpu(void)\n+{\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+}\n", "prefixes": [ "1/4" ] }