Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2219747/?format=api
{ "id": 2219747, "url": "http://patchwork.ozlabs.org/api/patches/2219747/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260404-qcom_spl-v1-2-9e6c2ac66587@seznam.cz/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/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, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260404-qcom_spl-v1-2-9e6c2ac66587@seznam.cz>", "list_archive_url": null, "date": "2026-04-03T23:18:17", "name": "[2/5] of_live: support in SPL", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "13c259062695518c86d6fd7b1de2414ad75bdffc", "submitter": { "id": 77645, "url": "http://patchwork.ozlabs.org/api/people/77645/?format=api", "name": "Michael Srba", "email": "michael.srba@seznam.cz" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260404-qcom_spl-v1-2-9e6c2ac66587@seznam.cz/mbox/", "series": [ { "id": 498699, "url": "http://patchwork.ozlabs.org/api/series/498699/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498699", "date": "2026-04-03T23:18:18", "name": "Add SPL support for Qualcomm platforms, starting with sdm845", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498699/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2219747/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2219747/checks/", "tags": {}, "related": [], "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 secure) header.d=seznam.cz header.i=@seznam.cz header.a=rsa-sha256\n header.s=szn1 header.b=VefeB8EK;\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=none dis=none) header.from=seznam.cz", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=seznam.cz header.i=@seznam.cz header.b=\"VefeB8EK\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=seznam.cz", "phobos.denx.de;\n spf=pass smtp.mailfrom=michael.srba@seznam.cz" ], "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnm2l2Xqxz1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 17:31:43 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id F1AA784142;\n\tSat, 4 Apr 2026 08:31:20 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 08D8680325; Sat, 4 Apr 2026 01:19:36 +0200 (CEST)", "from mxd-1-a04.seznam.cz (mxd-1-a04.seznam.cz\n [IPv6:2a02:598:128:8a00::1000:a04])\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 91BDD84120\n for <u-boot@lists.denx.de>; Sat, 4 Apr 2026 01:19:33 +0200 (CEST)", "from email.seznam.cz by smtpc-mxd-7644845457-4tx79\n (smtpc-mxd-7644845457-4tx79 [2a02:598:128:8a00::1000:a04])\n id 36c769456dc93d2c376ea51b; Sat, 04 Apr 2026 01:18:43 +0200 (CEST)", "from [127.0.0.1] (ip-111-27.static.ccinternet.cz [147.161.27.111])\n by smtpd-relay-789d8dfb5c-z7n27 (szn-email-smtpd/2.0.71) with ESMTPA\n id 3fe65dd7-791b-4f61-af3f-c7ecb92f1e6e;\n Sat, 04 Apr 2026 01:18:30 +0200" ], "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,FREEMAIL_FROM,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=seznam.cz; s=szn1;\n t=1775258323; bh=UDEWe6BxzP7TU3d02urzkGVH9yHdyhu0muXqbZGGU6Y=;\n h=From:Date:Subject:MIME-Version:Content-Type:\n Content-Transfer-Encoding:Message-Id:To:Cc;\n b=VefeB8EKQXxhmEJQU6cX9Kut6myJxCGu4Fz+bXajPhl7XV8uKvJ3UyY3TWfKo99vc\n xbEkwb9EgYtfmdLSHpZoEETs0ouLJgUbq+xxLd+omqu+ubBdbalrFEJGX9E7cpTr18\n +Q68+//Pu8dJINqYgMuWmflcHEAGHTXH0YhenIzNfZ7DVbi3KFl472V/vQfE6u94r7\n MRUbitDeFfN5J3TSBFfRoejKWqZDNUWa6HSqZ+f1DTXFbf5FzqeBKRSwxRCZgorbmv\n rMbW+hzoQbxhMTaKHKfwXMQnC57FaVezn5jbd9fZegV2yOIRlmtbJxGYqNaFR+sr3A\n nKUKttaXURj5A==", "From": "michael.srba@seznam.cz", "Date": "Sat, 04 Apr 2026 01:18:17 +0200", "Subject": "[PATCH 2/5] of_live: support in SPL", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260404-qcom_spl-v1-2-9e6c2ac66587@seznam.cz>", "References": "<20260404-qcom_spl-v1-0-9e6c2ac66587@seznam.cz>", "In-Reply-To": "<20260404-qcom_spl-v1-0-9e6c2ac66587@seznam.cz>", "To": "u-boot@lists.denx.de, Sumit Garg <sumit.garg@kernel.org>,\n u-boot-qcom@groups.io", "Cc": "Tom Rini <trini@konsulko.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Simon Glass <sjg@chromium.org>, Sughosh Ganu <sughosh.ganu@arm.com>,\n Anshul Dalal <anshuld@ti.com>, Peng Fan <peng.fan@nxp.com>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>, Andrew Davis <afd@ti.com>,\n Hrushikesh Salunke <h-salunke@ti.com>,\n Dario Binacchi <dario.binacchi@amarulasolutions.com>, Ye Li <ye.li@nxp.com>,\n Andre Przywara <andre.przywara@arm.com>,\n Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>,\n Leo Yu-Chi Liang <ycliang@andestech.com>,\n Andrew Goodbody <andrew.goodbody@linaro.org>, Dhruva Gole <d-gole@ti.com>,\n Kaustabh Chakraborty <kauschluss@disroot.org>,\n Jerome Forissier <jerome.forissier@arm.com>,\n Heiko Schocher <hs@nabladev.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Lukasz Majewski <lukma@denx.de>,\n Mateusz Kulikowski <mateusz.kulikowski@gmail.com>,\n Dinesh Maniyam <dinesh.maniyam@altera.com>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Patrice Chotard <patrice.chotard@foss.st.com>,\n Patrick Delaunay <patrick.delaunay@foss.st.com>,\n Michal Simek <michal.simek@amd.com>, Yao Zi <me@ziyao.cc>,\n Peter Korsgaard <peter@korsgaard.com>,\n Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>,\n Casey Connolly <casey.connolly@linaro.org>,\n Tingting Meng <tingting.meng@altera.com>,\n Tien Fong Chee <tien.fong.chee@altera.com>, Alice Guo <alice.guo@nxp.com>,\n George Chan <gchan9527@gmail.com>,\n Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>,\n Michael Srba <Michael.Srba@seznam.cz>", "X-Mailer": "b4 0.15.1", "X-Mailman-Approved-At": "Sat, 04 Apr 2026 08:31:19 +0200", "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": "From: Michael Srba <Michael.Srba@seznam.cz>\n\nAdd CONFIG_SPL_OF_LIVE and if set, initialize of_live in spl.c\n\nSigned-off-by: Michael Srba <Michael.Srba@seznam.cz>\n---\n common/spl/spl.c | 10 ++++++++++\n dts/Kconfig | 5 +++++\n lib/Makefile | 2 +-\n 3 files changed, 16 insertions(+), 1 deletion(-)", "diff": "diff --git a/common/spl/spl.c b/common/spl/spl.c\nindex fd915d9564b..84bd0f1ae20 100644\n--- a/common/spl/spl.c\n+++ b/common/spl/spl.c\n@@ -17,6 +17,7 @@\n #include <irq_func.h>\n #include <log.h>\n #include <mapmem.h>\n+#include <of_live.h>\n #include <serial.h>\n #include <spl.h>\n #include <spl_load.h>\n@@ -510,6 +511,15 @@ static int spl_common_init(bool setup_malloc)\n \t\t\treturn ret;\n \t\t}\n \t}\n+\tif (CONFIG_IS_ENABLED(OF_LIVE)) {\n+\t\tret = of_live_build(gd->fdt_blob,\n+\t\t\t\t (struct device_node **)gd_of_root_ptr());\n+\t\tif (ret) {\n+\t\t\tdebug(\"of_live_build() returned error %d\\n\", ret);\n+\t\t\treturn ret;\n+\t\t}\n+\t}\n+\n \tif (CONFIG_IS_ENABLED(DM)) {\n \t\tbootstage_start(BOOTSTAGE_ID_ACCUM_DM_SPL,\n \t\t\t\txpl_phase() == PHASE_TPL ? \"dm tpl\" : \"dm_spl\");\ndiff --git a/dts/Kconfig b/dts/Kconfig\nindex af8d30b45ab..f3472c9c0e8 100644\n--- a/dts/Kconfig\n+++ b/dts/Kconfig\n@@ -86,6 +86,11 @@ config OF_LIVE\n \t enables a live tree which is available after relocation,\n \t and can be adjusted as needed.\n \n+config SPL_OF_LIVE\n+\tbool \"Enable use of a live tree in SPL\"\n+\tdepends on SPL_DM && SPL_OF_CONTROL\n+\n+\n config OF_UPSTREAM\n \tbool \"Enable use of devicetree imported from Linux kernel release\"\n \tdepends on !COMPILE_TEST\ndiff --git a/lib/Makefile b/lib/Makefile\nindex 70667f3728c..fcceba9fef3 100644\n--- a/lib/Makefile\n+++ b/lib/Makefile\n@@ -13,7 +13,6 @@ obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += fwu_updates/\n obj-$(CONFIG_LZMA) += lzma/\n obj-$(CONFIG_BZIP2) += bzip2/\n obj-$(CONFIG_FIT) += libfdt/\n-obj-$(CONFIG_OF_LIVE) += of_live.o\n obj-$(CONFIG_CMD_DHRYSTONE) += dhry/\n obj-$(CONFIG_ARCH_AT91) += at91/\n obj-$(CONFIG_OPTEE_LIB) += optee/\n@@ -55,6 +54,7 @@ obj-$(CONFIG_BITREVERSE) += bitrev.o\n obj-y += list_sort.o\n endif\n \n+obj-$(CONFIG_$(PHASE_)OF_LIVE) += of_live.o\n obj-$(CONFIG_$(PHASE_)TPM) += tpm-common.o\n ifeq ($(CONFIG_$(PHASE_)TPM),y)\n obj-$(CONFIG_TPM) += tpm_api.o\n", "prefixes": [ "2/5" ] }