Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2220931/?format=api
{ "id": 2220931, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2220931/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260408121841.186410-4-aswin.murugan@oss.qualcomm.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260408121841.186410-4-aswin.murugan@oss.qualcomm.com>", "list_archive_url": null, "date": "2026-04-08T12:18:37", "name": "[v4,3/7] mach-snapdragon: Integrate reboot-mode handling", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "3c1f9bdb41c6681bfcba0bd5cd2a42f14bb2e007", "submitter": { "id": 90811, "url": "http://patchwork.ozlabs.org/api/1.2/people/90811/?format=api", "name": "Aswin Murugan", "email": "aswin.murugan@oss.qualcomm.com" }, "delegate": { "id": 151538, "url": "http://patchwork.ozlabs.org/api/1.2/users/151538/?format=api", "username": "kcxt", "first_name": "Casey", "last_name": "Connolly", "email": "casey.connolly@linaro.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260408121841.186410-4-aswin.murugan@oss.qualcomm.com/mbox/", "series": [ { "id": 499133, "url": "http://patchwork.ozlabs.org/api/1.2/series/499133/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499133", "date": "2026-04-08T12:18:34", "name": "qcom: Add NVMEM bitfield support and reboot���mode integration", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/499133/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220931/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220931/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 unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=Flrb2iX3;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=dOUXJ1BL;\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=none (p=none dis=none) header.from=oss.qualcomm.com", "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=qualcomm.com header.i=@qualcomm.com\n header.b=\"Flrb2iX3\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"dOUXJ1BL\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=oss.qualcomm.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=aswin.murugan@oss.qualcomm.com" ], "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 4frMbn6Ymwz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 08 Apr 2026 22:20:53 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 4853783D8A;\n\tWed, 8 Apr 2026 14:20:50 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 2E47083D8A; Wed, 8 Apr 2026 14:20:49 +0200 (CEST)", "from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com\n [205.220.168.131])\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 C9F26838BB\n for <u-boot@lists.denx.de>; Wed, 8 Apr 2026 14:20:46 +0200 (CEST)", "from pps.filterd (m0279866.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 638AlpZ83362755\n for <u-boot@lists.denx.de>; Wed, 8 Apr 2026 12:20:45 GMT", "from mail-pf1-f197.google.com (mail-pf1-f197.google.com\n [209.85.210.197])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dd7tkkamr-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Wed, 08 Apr 2026 12:20:44 +0000 (GMT)", "by mail-pf1-f197.google.com with SMTP id\n d2e1a72fcca58-82cdf02bce5so3765469b3a.2\n for <u-boot@lists.denx.de>; Wed, 08 Apr 2026 05:20:44 -0700 (PDT)", "from hu-aswinm-blr.qualcomm.com\n (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82cf9a24039sm20512602b3a.0.2026.04.08.05.20.35\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 08 Apr 2026 05:20:43 -0700 (PDT)" ], "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_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n content-transfer-encoding:date:from:in-reply-to:message-id\n :mime-version:references:subject:to; s=qcppdkim1; bh=3TeUKGv+NT8\n UqBE0FOYvcxyIbb8y/o0TnxIraoTfEuU=; b=Flrb2iX3+cCliGpyNRAyeXfGy7z\n dEI0tYRMYcycss0YwjcgiDjW8RmwZakKJ94B1OwKTrJG8ES0PEfRVYx3Qy+n5w60\n 3zw1LDfYPsjCsDwcdp2kBXnYn8HOU4R4FreblG9dYDqgP6+LvCIt+UpGNnzAAeEF\n wjm1i0EdQZ69kTA096L00I9Bf7pt17dWLGdPfpEplt9vIWO4FjE9X2PTOxeint3B\n U6AWyH1b12NvpqgnCUM7vEeOXUSqeK0wnuVf0OSYNa0G1JO9CxL/f9iLIIwNRaGI\n n2hmxB1BIG4sfc2DEST5yFoyHX6XibR9lqGGFF13Nah8Us2Nq5494Md6uwg==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1775650844; x=1776255644; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=3TeUKGv+NT8UqBE0FOYvcxyIbb8y/o0TnxIraoTfEuU=;\n b=dOUXJ1BLZZ/8Pns/AVqTUZioelrUo56duMIK3q/31Ajbvi8+vQQn7eEqVwtVCaUjG3\n kqYnWpwEndgnM1seiHIVpqbrpLk8e+UgHZXpLDISjHigovYxacbxrkozCC++VkfvqniX\n pGKiux9WTlwTbnHdrC1cVyOKTlS+rCJUPAtYptLqlK7r56D7nL8xalnx4Jawm810sQ7a\n W2ATpXyE1sdoGg24edAdRpfnlgSADC33YHYynqX8WtlceuXwe4x8YbLQr6zQcgTtgx1C\n ujUb/NxIw6AdZ5hmyX1appHoQN7X6JGzzrSWma0xv/Omuii0li987/m5W8Vr8v0cBRRh\n X6vw==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775650844; x=1776255644;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=3TeUKGv+NT8UqBE0FOYvcxyIbb8y/o0TnxIraoTfEuU=;\n b=BPRp4MuyaswvIPJdk5uSOg+vDqE3+XzEl0pgFsJCB5bZgnMoQerr96dFlWL8bakyAa\n n+OtZx6nEhzUAnWazpsIg33WKVldil6NRkMd8yvVDjHYfHzR9BFDRUoBdaCz1mCjSUWI\n XwjBbcScNxNR45nioZ3mcXZyu8AnwihwapUdpripgCTCEAzlyIXuE3sHuxQ2us4PHpvh\n mHXiLeKq7t64EL30k9iNQ1PyqRfhNg/aq2s5upZp+0iKNOcK2TfdsC04TYw84OTyWHUC\n 1XxoMpFTZgPVmSqMOKfqymY9toZyG/9rfmBzUPBEJU5BX7GnHTHL1sweHAoqqoGrOE03\n LckA==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCVurwA+6u4fIujlps6xWHuWT1nxdhQdFWs9Ahri7YI3pTf+r6CnwRrnZgnxfhn/o9Sut2q2hbc=@lists.denx.de", "X-Gm-Message-State": "AOJu0YwHJiy+Sx2lYmJMVD7vsCCaUR2OvYXvzqSAXzxKL/EHpJc3vF0/\n /GihE3R9pWbbRydzbotA99gYlcII51B9SU8AT2nv8JOqLgh/8upseUv/Q3CgQCZhgEVjRRqZFmU\n 7Sm7ATDKm31lQ9u+j5QaGQUXcf/fPfpxwQQF3YYInI6oj1QOZJR4dCC56", "X-Gm-Gg": "AeBDievknsPzSIciUaquBJPwGNFgRYotLLYPKJ91AvtDNDb0xypOQLeRXdSKJ2BNTFw\n zIEsHfHRhzWDZQNOzyFbvZsUHPoQHH30Ybh5n1NdhLt9xS4hNoEodrIivG83a7XjuyFWo6mq0t/\n muH7pAl6OD2fYlpikId5AMIRO8wf7cFSZXNAW8UIr9aVdfGR0lYP5T78cXgKrftdbEFD2tYXfdr\n bb88cw4ASJ6DX1yuozVX34xOLCWxw3SxC8z0gPoNfhNY7sYnOlA7V/ya0SiChreqtWPxyZsvKm0\n 3u6R8iQA0CKqO4eRwmLvI5Smg+6+Q3hpSLw2vmQVhv7XAylbu7uch3cN3QDpAodBSRp/ibODPDf\n POV3hnrGZj+bMuuhFVsbpjw+iRqP39475VtVQG9zuJxBH1MG/8dM0xB9IeGar/wtjemqwc2CRyN\n MdLdVkuqZYHalBQGXvS+vclPvrk6j6aMt2doxHEMdz", "X-Received": [ "by 2002:a05:6a00:2d10:b0:82c:66f2:1226 with SMTP id\n d2e1a72fcca58-82d0db84a62mr20247382b3a.38.1775650844109;\n Wed, 08 Apr 2026 05:20:44 -0700 (PDT)", "by 2002:a05:6a00:2d10:b0:82c:66f2:1226 with SMTP id\n d2e1a72fcca58-82d0db84a62mr20247328b3a.38.1775650843474;\n Wed, 08 Apr 2026 05:20:43 -0700 (PDT)" ], "From": "Aswin Murugan <aswin.murugan@oss.qualcomm.com>", "To": "trini@konsulko.com, aswin.murugan@oss.qualcomm.com,\n casey.connolly@linaro.org, neil.armstrong@linaro.org,\n sumit.garg@kernel.org, sjg@chromium.org, seanga2@gmail.com,\n sughosh.ganu@arm.com, gchan9527@gmail.com, ilias.apalodimas@linaro.org,\n mkorpershoek@kernel.org, marek.vasut+renesas@mailbox.org,\n hs@nabladev.com, msp@baylibre.com, ravi@prevas.dk,\n dinesh.maniyam@altera.com, sajattack@postmarketos.org,\n peng.fan@nxp.com, quentin.schulz@cherry.de,\n jamie.gibbons@microchip.com, mateuslima.ti@gmail.com,\n justin@tidylabs.net, wens@kernel.org, n-francis@ti.com,\n ycliang@andestech.com, jerome.forissier@arm.com, clamor95@gmail.com,\n u-boot@lists.denx.de, u-boot-qcom@groups.io", "Subject": "[PATCH v4 3/7] mach-snapdragon: Integrate reboot-mode handling", "Date": "Wed, 8 Apr 2026 17:48:37 +0530", "Message-Id": "<20260408121841.186410-4-aswin.murugan@oss.qualcomm.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260408121841.186410-1-aswin.murugan@oss.qualcomm.com>", "References": "<20260408121841.186410-1-aswin.murugan@oss.qualcomm.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Authority-Analysis": "v=2.4 cv=drPrzVg4 c=1 sm=1 tr=0 ts=69d6481c cx=c_pps\n a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8\n a=HTivtqB3egNFbubTlooA:9 a=2VI0MkxyNR6bbpdq8BZq:22", "X-Proofpoint-ORIG-GUID": "Kddf7IFH4cLmztl6QDOVXjRyCPDQ3AYi", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDA4MDExMiBTYWx0ZWRfX7ejhIAJhFPkV\n zkiwXHqPpuglNBl4YJBqcd0KybPiB0SvuV5YbUfZ1xyt+B4rx8sHiREZ+5Y/HB9NFnVYLWhy6Lm\n C2fuaCW0AOafMPOSLQKCEXo9kpRJPecWUhqVho06NVcC9AOcm7DgwecnSQsNVHvd3vzAUKXvgDn\n 12ZEjD4EyOribB0e8Ou95bM3+cAaZ9JSXj2JbI36WOsxOYNyquZRT1zNBmdUPjB/1ODmavxsib6\n TbrcjNN3U2N31wNiBwt1QoOu8vBdwscZD0TsccC96t/pOsNwht0wbOTwpidATf0remyBZTWr5Pr\n hrXAuPL8GSzRCE+MbuCf9UgGDF6scJksAgIyxvpKjTKsEJV4+H6Yne8nMhm9V/GoSb1KwEnHSwB\n T8hS9YDgCfsXmsYaOT1Phj0HiYdUxGkG4keZv+tYePLwmNeLFdCDAYVNQmMGXVi57LH6EySiMYT\n wOczjYuqLrQvmNPr4pg==", "X-Proofpoint-GUID": "Kddf7IFH4cLmztl6QDOVXjRyCPDQ3AYi", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-08_03,2026-04-08_01,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n adultscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 malwarescore=0\n bulkscore=0 impostorscore=0 phishscore=0 priorityscore=1501 suspectscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604010000 definitions=main-2604080112", "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": "Add reboot-mode detection and automatic fastboot entry to Qualcomm board\ninitialization. This enables 'reboot bootloader' functionality on\nplatforms with reboot-mode device tree configuration.\n\nChanges:\n- Add qcom_handle_reboot_mode() call in board_late_init()\n- Conditionally compile with CONFIG_DM_REBOOT_MODE\n- Reorganize header includes\n\nSigned-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>\n---\nChanges in v4:\n1. Added early return `if (!IS_ENABLED(CONFIG_DM_REBOOT_MODE))`\n inside `qcom_handle_reboot_mode()`\n2. Removed `#ifdef` wrapper around function call\n3. Function now defined unconditionally with runtime check\n4. Provides user feedback when fastboot command fails\n\nChanges in v3:\n1. No change in v3\n---\n arch/arm/mach-snapdragon/board.c | 59 ++++++++++++++++++++++++++------\n 1 file changed, 48 insertions(+), 11 deletions(-)", "diff": "diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c\nindex 5fb3240acc5..c3e97cdbfdf 100644\n--- a/arch/arm/mach-snapdragon/board.c\n+++ b/arch/arm/mach-snapdragon/board.c\n@@ -9,6 +9,15 @@\n #define LOG_CATEGORY LOGC_BOARD\n #define pr_fmt(fmt) \"QCOM: \" fmt\n \n+#include <command.h>\n+#include <env.h>\n+#include <fdt_support.h>\n+#include <init.h>\n+#include <lmb.h>\n+#include <malloc.h>\n+#include <sort.h>\n+#include <time.h>\n+#include <usb.h>\n #include <asm/armv8/mmu.h>\n #include <asm/gpio.h>\n #include <asm/io.h>\n@@ -16,22 +25,14 @@\n #include <asm/system.h>\n #include <dm/device.h>\n #include <dm/pinctrl.h>\n-#include <dm/uclass-internal.h>\n #include <dm/read.h>\n-#include <power/regulator.h>\n-#include <env.h>\n-#include <fdt_support.h>\n-#include <init.h>\n+#include <dm/uclass-internal.h>\n #include <linux/arm-smccc.h>\n #include <linux/bug.h>\n #include <linux/psci.h>\n #include <linux/sizes.h>\n-#include <lmb.h>\n-#include <malloc.h>\n-#include <fdt_support.h>\n-#include <usb.h>\n-#include <sort.h>\n-#include <time.h>\n+#include <power/regulator.h>\n+#include <reboot-mode/reboot-mode.h>\n \n #include \"qcom-priv.h\"\n \n@@ -506,6 +507,38 @@ void qcom_show_boot_source(void)\n \tenv_set(\"boot_source\", name);\n }\n \n+/**\n+ * qcom_handle_reboot_mode() - Process reboot-mode detection and handle fastboot entry\n+ *\n+ * This function detects the reboot reason from PMIC registers and automatically\n+ * enters fastboot mode if the reboot reason was \"bootloader\".\n+ */\n+static void qcom_handle_reboot_mode(void)\n+{\n+\tstruct udevice *reboot_dev;\n+\tconst char *reboot_mode;\n+\tint ret;\n+\n+\tif (!IS_ENABLED(CONFIG_DM_REBOOT_MODE))\n+\t\treturn;\n+\n+\tret = uclass_first_device_err(UCLASS_REBOOT_MODE, &reboot_dev);\n+\tif (ret)\n+\t\treturn;\n+\n+\tret = dm_reboot_mode_update(reboot_dev);\n+\tif (ret)\n+\t\treturn;\n+\n+\treboot_mode = env_get(\"reboot-mode\");\n+\tif (reboot_mode && !strcmp(reboot_mode, \"bootloader\")) {\n+\t\tlog_info(\"Entering fastboot mode due to reboot reason...\\n\");\n+\t\tret = run_command(\"run fastboot\", 0);\n+\t\tif (ret)\n+\t\t\tlog_warning(\"Failed to enter fastboot mode: %d\\n\", ret);\n+\t}\n+}\n+\n void __weak qcom_late_init(void)\n {\n }\n@@ -570,6 +603,10 @@ int board_late_init(void)\n \tqcom_late_init();\n \n \tqcom_show_boot_source();\n+\n+\t/* Handle reboot-mode detection and fastboot entry */\n+\tqcom_handle_reboot_mode();\n+\n \t/* Configure the dfu_string for capsule updates */\n \tqcom_configure_capsule_updates();\n \n", "prefixes": [ "v4", "3/7" ] }