get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196311,
    "url": "http://patchwork.ozlabs.org/api/patches/2196311/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260213112717.1256823-5-aswin.murugan@oss.qualcomm.com/",
    "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": "<20260213112717.1256823-5-aswin.murugan@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-02-13T11:27:15",
    "name": "[v2,4/6] mach-snapdragon: Integrate reboot-mode handling",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f4df24b5bcfb5b4679213c0d0d5eae7c1d2de9e5",
    "submitter": {
        "id": 90811,
        "url": "http://patchwork.ozlabs.org/api/people/90811/?format=api",
        "name": "Aswin Murugan",
        "email": "aswin.murugan@oss.qualcomm.com"
    },
    "delegate": {
        "id": 151538,
        "url": "http://patchwork.ozlabs.org/api/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/20260213112717.1256823-5-aswin.murugan@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 492084,
            "url": "http://patchwork.ozlabs.org/api/series/492084/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=492084",
            "date": "2026-02-13T11:27:11",
            "name": "qcom: Add NVMEM bitfield support and reboot‑mode integration",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/492084/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196311/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196311/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=EsH/vRwB;\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=OXf4pC1i;\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=\"EsH/vRwB\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"OXf4pC1i\";\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 4fC9001CLmz1xr1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 22:28:16 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 02BB083C4B;\n\tFri, 13 Feb 2026 12:28:08 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 9CDDF80FA1; Fri, 13 Feb 2026 12:28:06 +0100 (CET)",
            "from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com\n [205.220.180.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 6A5A483DE4\n for <u-boot@lists.denx.de>; Fri, 13 Feb 2026 12:28:03 +0100 (CET)",
            "from pps.filterd (m0279870.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 61D3vpcn1756703\n for <u-boot@lists.denx.de>; Fri, 13 Feb 2026 11:28:02 GMT",
            "from mail-pj1-f70.google.com (mail-pj1-f70.google.com\n [209.85.216.70])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4c9mb1375c-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Fri, 13 Feb 2026 11:28:01 +0000 (GMT)",
            "by mail-pj1-f70.google.com with SMTP id\n 98e67ed59e1d1-35464d7c539so846904a91.0\n for <u-boot@lists.denx.de>; Fri, 13 Feb 2026 03:28:01 -0800 (PST)",
            "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 41be03b00d2f7-c6e1969f314sm7996939a12.8.2026.02.13.03.27.53\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 13 Feb 2026 03:27:59 -0800 (PST)"
        ],
        "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 cc:content-transfer-encoding:date:from:in-reply-to:message-id\n :mime-version:references:subject:to; s=qcppdkim1; bh=s7MN/AyttXj\n s36dKL7ONF/wi5A8+5O+HHmAQirWhqCU=; b=EsH/vRwBYUQ6Y/7BhS9Bzm8o/t+\n 0ciJeAqWm/9QVi9KTbIu3D7nrIsdYz2ZhBujKVowTXqogar+bQoKABMKJPADz21K\n xGqxDRb+UBzivr21dn+8rZrIFEQgJ5HAQQTgTMa2ZMKAS/Qwcfk3atG7r2LrASV2\n vrJ0WYGy6cfSgtAruxxkXjCK7gqRjzc2/jQJofFi2BeZ0TvXn0t5n3yngp07jIcN\n gESRrN521DzlOAaPQu6Xpih0wDdQz+833QS30YsIr4luxmbdU7xP1532N+OcPtXx\n 95fcecharhcYv+q+aYK8p5A9XbYkA+6T7d7yKYGnT/XLbGiqBFJs/4HHH2w==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1770982080; x=1771586880; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=s7MN/AyttXjs36dKL7ONF/wi5A8+5O+HHmAQirWhqCU=;\n b=OXf4pC1i2y0xwOgZ0s2ZqLp0dpetcaJK21hnD3G+nHbpmomy1Mo99JUGcZqRy81OQ/\n ka6qJLS2nFjQ99HUb4YTNPyTCHnzayGrH7JE1+wBCZbeETQkzoG/KJC1lgLRHS/TsePV\n /O+qVhv+VQCEs3wnnboC0vKNsSaAblkYt9e6JBNU+6PkfGiVzCaPtBEZ1bfFon6cW7i6\n crWApN60x0k2ZUqg5jxpX8TRMACRtNCoNrfMn0aK8NIRWN3h0yq8mhooLE/sTkiYphuN\n +IuwBJZWDD/8Kt9mCQDrH4UQUw4+dMK07gksWjhZMS8PNeOibm+F1yK55MY4Qe1xws6W\n cXgA=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770982080; x=1771586880;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=s7MN/AyttXjs36dKL7ONF/wi5A8+5O+HHmAQirWhqCU=;\n b=c4PSMM7WFFkIuzizFmc6mlfH59whHMuHAcbwE6UpKNbQHFr3FV6LA3T+VbLpu4F7tb\n 9pztAG2a1Mf1GED+KytD0c3M+Cl1O+FvVVJYiDO+GYyUoraEXSSen7yirZW4BThN6yFs\n m2Hc+SawRzM7tr5Vxo5nMuZglutIPBg8QXvPfbyVMaOuVChbOQdeTJfgAWEBBYnrXSGZ\n WNiI7hM3yGQbo8d0U6qS8w9mdzR4sXJabusImAAUsa9cQH+PlMqb4SLe6mWF42Ga+ibU\n 1/O3n7md9GrUbqVvmi/BjdwuxpxE0wjFGd/Umfee/P6uWLyFUwgHPvLA6qM49GBJeyfv\n kAlQ==",
        "X-Gm-Message-State": "AOJu0YyxjdvYjtRcHUmFfom1g5XZY3YrbPwJSifXy7n0Y1I/Dn5/S7dg\n Dw6JYzA9+hCUNVWG3z4nc1+cuHU95B0k655KDPAP6PWVW3gC46wEy2iT+B0y/gWb2oCNcGeIuCR\n trWEnJwUVrH9rxngyCK1Rbz4wX+ETdqnqc7B1iuRkPDN/0qezDR5KSSS68GEqtVpV",
        "X-Gm-Gg": "AZuq6aKRBsu6e4GqFsQorq/YNYCIQg4sZoBALF3vc+Q3GSYyBB8i4V0xQtiPlV9iwIt\n 4TeRXqgG20hFIeISW2YxGaxmJp8fhy3tiecZUEbMu1i1nfxylSEMeo7tHBJ/bf8jn8CF1Knne98\n jZHJjyZNQrg7TYMaMV7MOf/JVBAN/46rh3/ywGzw4ddk/8sLA4D4uG7vk/ChZjIYRo7/PMVrZlZ\n sokoDFfX24gkMI/r6xIcquFjZh3DKYU2wBz+mRQ5+v5itiGfvYlokqpn9WPY2N0mIuKjk78y2Nd\n dPUrrhsTRfIjYhDdF/6z55rduCB0wquog6UFyU2QwYT1dP0HVBlJiDjxqs5N659gqe4pTzjGxeM\n t653k2DDvVKZZPDPOMf9PLua7S83dC7ehdWiVLQvOLIeoBBWnzrVWVmOXlBYzD9/RFUgaI0loJ7\n DSIdMFVwfV8JMP9NNoB55jqNqOgwxMCuYyex2NTnah",
        "X-Received": [
            "by 2002:a17:90b:3c4c:b0:341:8491:472a with SMTP id\n 98e67ed59e1d1-356aab9a316mr1530040a91.4.1770982080384;\n Fri, 13 Feb 2026 03:28:00 -0800 (PST)",
            "by 2002:a17:90b:3c4c:b0:341:8491:472a with SMTP id\n 98e67ed59e1d1-356aab9a316mr1530012a91.4.1770982079881;\n Fri, 13 Feb 2026 03:27:59 -0800 (PST)"
        ],
        "From": "Aswin Murugan <aswin.murugan@oss.qualcomm.com>",
        "To": "u-boot@lists.denx.de, sumit.garg@kernel.org, casey.connolly@linaro.org,\n u-boot-qcom@groups.io",
        "Cc": "seanga2@gmail.com, trini@konsulko.com, marek.vasut+renesas@mailbox.org,\n neil.armstrong@linaro.org, peng.fan@nxp.com, quentin.schulz@cherry.de,\n n-francis@ti.com, xypron.glpk@gmx.de, h-vm@ti.com, justin@tidylabs.net,\n jamie.gibbons@microchip.com, ycliang@andestech.com, me@samcday.com,\n sughosh.ganu@arm.com, gchan9527@gmail.com, ilias.apalodimas@linaro.org,\n Aswin Murugan <aswin.murugan@oss.qualcomm.com>",
        "Subject": "[PATCH v2 4/6] mach-snapdragon: Integrate reboot-mode handling",
        "Date": "Fri, 13 Feb 2026 16:57:15 +0530",
        "Message-Id": "<20260213112717.1256823-5-aswin.murugan@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260213112717.1256823-1-aswin.murugan@oss.qualcomm.com>",
        "References": "<20260213112717.1256823-1-aswin.murugan@oss.qualcomm.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjEzMDA4NyBTYWx0ZWRfX2NYOnZ5kV5rm\n 5Uqx12X5gBqeXwodvRXGpzzeSXRvXlycdFzwsmzjpsrLXUU3u7JMIQtTe6rV3UsC6f5D0HPjPLz\n O2LuC+O2PbNgavzpLhFWhjnd70wt4yJl7I2Sz1WvETrzfdgxs/PW8NhqAC8WkWJY+U9x3PaR8/m\n K2GsFkaw0n2+7HWKfLX0E9DZLNs16IKnbxdXJofZBLAae2YBl76qOZk+q3lwYgQoDLgIdDKeDCk\n yPtpCPz1SLbwH6Ny4KPd+N0p+U01k+7QmG6gHAHXgXtLFxYg2N7QtImGnwGgDGDzA+SBVWoEMqf\n qdEoy5eFvS4ytHlV9FVDAnbYTXM3K73D1q/QvCzNbFIlXmP2WtH8CX28ysoRka/SzXQHRospUO+\n bjfUUEC4kM2jkye1Ydupm6ovJ/frwWq7IOuk6PJUgHN1Zq83AKWmcxaXfwK4YRoy7uM/mnM3aQF\n wiWK+MH5Op7J0pD1eXw==",
        "X-Proofpoint-ORIG-GUID": "cGZmGCmc2CJxVVWI7z_GAJOPqSJnY26x",
        "X-Authority-Analysis": "v=2.4 cv=asC/yCZV c=1 sm=1 tr=0 ts=698f0ac1 cx=c_pps\n a=0uOsjrqzRL749jD1oC5vDA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=EUspDBNiAAAA:8\n a=zRlt6gtmhGCAqZgH310A:9 a=mQ_c8vxmzFEMiUWkPHU9:22",
        "X-Proofpoint-GUID": "cGZmGCmc2CJxVVWI7z_GAJOPqSJnY26x",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-02-13_02,2026-02-12_03,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n phishscore=0 spamscore=0 priorityscore=1501 suspectscore=0 malwarescore=0\n impostorscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 bulkscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602130087",
        "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---\n arch/arm/mach-snapdragon/board.c | 56 +++++++++++++++++++++++++-------\n 1 file changed, 45 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c\nindex 5fb3240acc5..a596d052711 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,33 @@ 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+\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\tprintf(\"Entering fastboot mode due to reboot reason...\\n\");\n+\t\trun_command(\"run fastboot\", 0);\n+\t}\n+}\n+\n void __weak qcom_late_init(void)\n {\n }\n@@ -570,6 +598,12 @@ 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+#if IS_ENABLED(CONFIG_DM_REBOOT_MODE)\n+\tqcom_handle_reboot_mode();\n+#endif\n+\n \t/* Configure the dfu_string for capsule updates */\n \tqcom_configure_capsule_updates();\n \n",
    "prefixes": [
        "v2",
        "4/6"
    ]
}