get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2228794,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228794/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260427-fb_gpt-v2-4-9e7fe3c1649a@oss.qualcomm.com/",
    "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": "<20260427-fb_gpt-v2-4-9e7fe3c1649a@oss.qualcomm.com>",
    "date": "2026-04-27T12:06:45",
    "name": "[v2,4/4] doc: fastboot: Document block device selection syntax",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "5d9dc29dd59472664b5d23f01e702a39ca0ef812",
    "submitter": {
        "id": 90810,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/90810/?format=api",
        "name": "Balaji Selvanathan",
        "email": "balaji.selvanathan@oss.qualcomm.com"
    },
    "delegate": {
        "id": 117687,
        "url": "http://patchwork.ozlabs.org/api/1.1/users/117687/?format=api",
        "username": "mkorpershoek",
        "first_name": "Mattijs",
        "last_name": "Korpershoek",
        "email": "mkorpershoek@baylibre.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260427-fb_gpt-v2-4-9e7fe3c1649a@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 501635,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501635/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501635",
            "date": "2026-04-27T12:06:41",
            "name": "fastboot: block: Add GPT/MBR and device selection",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/501635/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228794/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228794/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=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=Rf/4uHK2;\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=HpHVEXCQ;\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=\"Rf/4uHK2\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"HpHVEXCQ\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=oss.qualcomm.com",
            "phobos.denx.de; spf=pass\n smtp.mailfrom=balaji.selvanathan@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 4g42PZ6S91z1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 22:07:30 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id ED7C083C14;\n\tMon, 27 Apr 2026 14:07:12 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id D402B8407E; Mon, 27 Apr 2026 14:07:10 +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 59D9780433\n for <u-boot@lists.denx.de>; Mon, 27 Apr 2026 14:07:08 +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 63R8T9MZ1762101\n for <u-boot@lists.denx.de>; Mon, 27 Apr 2026 12:07:06 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 4drpw9dy5d-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Mon, 27 Apr 2026 12:07:06 +0000 (GMT)",
            "by mail-pj1-f70.google.com with SMTP id\n 98e67ed59e1d1-354c0234c1fso11113443a91.2\n for <u-boot@lists.denx.de>; Mon, 27 Apr 2026 05:07:06 -0700 (PDT)",
            "from hu-bselvana-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 98e67ed59e1d1-36140feea38sm31832910a91.6.2026.04.27.05.07.01\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 27 Apr 2026 05:07:04 -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 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:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n CH2sh64zuUGVIgoqFSFo5N1hsS0D/q3FSIwR/Bjddfc=; b=Rf/4uHK2aOEFzw+w\n 34V0YeW84uxpdmz4GfRqH631IVAhUY7B2uu+oGHfFCcYXJcja2ooBlgmUzFCWcb7\n y7swTzSNYVV3+wIjmzei8aZhilvO4KuzyUrtsQkGdB2QqrXSg6O0PePy96T9c3xo\n voClSOB1B/I5HP/g0ueBzCvbT+33FQW46etRchziW8fh3qPy78D1YZd7hf7YtOBw\n JAEZE/00UVT0wXN4GPNQGACPfO5JVVtcqYqsihggTt6MZxs8bPnTqoiDvlaYLhJ1\n 695iw1QPSaMcsRTZHWL4LdZbN7Dl/R5W1h+s9mSjlMN5jCvnkT+4LuMG2LlnwRvP\n c+CTgA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1777291625; x=1777896425; darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=CH2sh64zuUGVIgoqFSFo5N1hsS0D/q3FSIwR/Bjddfc=;\n b=HpHVEXCQCBM9qBkN3Zzg4Gb2CMfNNr9l8IWKymhj/DYhbswboYyasakf5cELkAWHih\n kRSeb4hdzQUZ0kOxyZGkiW24gjGIg1ckKhZoxLh+Yl//o4SXBYl9YtUiA8mm2S4BlzXU\n xuCRvLeykROtQmEKoN7fba3arT9KMZG/HDzC9s9ac0pMusxnGAChMPBsuGLrK7kTnaUI\n y00Exz7hwkYWqapfAl3FG70nMXjLRybYUnY8R7uNaZ4oah4ml+3gRd6jnUqLJL9FGYrh\n fEo4thAl8S4wSU8YKZ7HupeXWzWhpHZPwdC4PrQbqLOH2DD+gObCLmkA5iUb3IFBJnpo\n /QiQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777291625; x=1777896425;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=CH2sh64zuUGVIgoqFSFo5N1hsS0D/q3FSIwR/Bjddfc=;\n b=S5fess9tqp6ivI/sx7J3HwOYzXJUkf6KyXeILZvEYHkmMKtaKVKNByL3N37J9vskJA\n c5OpvcDGsiXTkFfzgoAenil548cj/y6eIKLU35CGgPArFgyE6y37h9+2fSX5B7pXAMvh\n 29ZPNjASAVInAL7rcUVQWWQWed3iqvLjzLnuY6wjeobuyuPiBP6qht9UT9d7+u8CQPwF\n 1sQ2E5/zpsMwD5y9SHgqNemvT1p2T7N5/xNh8/Wn3qRqdpXtRV4unfCAy6tTjlyr0rn2\n wtluCkY/W0yIsHlgq0RhRIG6gYmxtlZUfM4uYF1+2L7WQvzL/mUvnI3lFpWpBiaX2ZyD\n 95WQ==",
        "X-Gm-Message-State": "AOJu0YwpeXXfNeiS2i2m8wawoCYCzyWrcJW0x0i6Y0kBOx+OY4A7DQB4\n esb1DfUr3rK6J1oKjzQGYcR4E7I5zyZ8Y3niv45Y0xJ7R0tw1+4XglifAMRibz4zal0rZ7v0EL+\n dYjFZsnsyutYRDbbOe2QjPINgdIvHaNGQNK2ixTgRXvFflAv+UN0pxx3z",
        "X-Gm-Gg": "AeBDietI6tkeGiMAd4ddDOxa/jtDNOi9wjAfcdosMmxdcBaF92VSZwGvGgVsYYJz9sd\n Sq7VbLJMHPBxUACRV2eeuFBWYpKviCmuZTvzGN+zLsTmOkvXzlY4e2Qak0aSgFEZ4fOhIQOlnV2\n 6WElYY1g4s8tXM7aEx32HQLvt+Uj56acoFL4sWwlHrNVKKPtW0cuN3d3PzSsUBHfIePHgCFF6fJ\n IsUubR2aXrwyn8VkeRcriZI4mRMc46e4KZim2AD+1Ih1XKbI/jFLADB13d7ysXlvlwGid8vYpKR\n 9ZWEIAQDIK5gXau/4gDbu2n25KMdLsdDo66VnDE+2aV4SZOKnm8MnnQr/Jf27BHmIy/DPlmk1MO\n +5tUMTZkQzLD/sccAOQ1v+1koZvRhZjTI/6b9kGC/+okVwuTMQoFLz8PRZ07NtIsNkKR+AB45T0\n VqRPCuH/iuIGwWcsEGC+RNl3WfTkKhdrHVhwotIA35TpJWUFBTiGwxJ2UYBFOK",
        "X-Received": [
            "by 2002:a17:90a:d40d:b0:35e:27ec:de0 with SMTP id\n 98e67ed59e1d1-36140462a99mr43442607a91.13.1777291625414;\n Mon, 27 Apr 2026 05:07:05 -0700 (PDT)",
            "by 2002:a17:90a:d40d:b0:35e:27ec:de0 with SMTP id\n 98e67ed59e1d1-36140462a99mr43442539a91.13.1777291624765;\n Mon, 27 Apr 2026 05:07:04 -0700 (PDT)"
        ],
        "From": "Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>",
        "Date": "Mon, 27 Apr 2026 17:36:45 +0530",
        "Subject": "[PATCH v2 4/4] doc: fastboot: Document block device selection syntax",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260427-fb_gpt-v2-4-9e7fe3c1649a@oss.qualcomm.com>",
        "References": "<20260427-fb_gpt-v2-0-9e7fe3c1649a@oss.qualcomm.com>",
        "In-Reply-To": "<20260427-fb_gpt-v2-0-9e7fe3c1649a@oss.qualcomm.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Tom Rini <trini@konsulko.com>, Heiko Schocher <hs@nabladev.com>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Dmitrii Merkurev <dimorinny@google.com>,\n Adrian Freihofer <adrian.freihofer@siemens.com>,\n Peng Fan <peng.fan@nxp.com>, Jaehoon Chung <jh80.chung@samsung.com>,\n Ariel D'Alessandro <ariel.dalessandro@collabora.com>,\n Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>",
        "X-Mailer": "b4 0.14.3",
        "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1777291604; l=2803;\n i=balaji.selvanathan@oss.qualcomm.com; s=20260213; h=from:subject:message-id;\n bh=PAWPglHHQqQ/oLL6xWsVay4ApyLNDJ2kUhnwly9cJT8=;\n b=8+JcNq6/Rn9DSuylLxuL8PpHfBORiASTnWJA2lVkj1EOSP7ZPMPoI6XUlBT56SRNNf7mu/UL5\n lkyDjun0ywHAKzocYvfvRmCoZQE3O8lJyze8hMjppFXpB5AgTvLCg+I",
        "X-Developer-Key": "i=balaji.selvanathan@oss.qualcomm.com; a=ed25519;\n pk=CDpYiUU3SH7KGEtsBvY2tBGPiWfMxqWJF0p2LftOfnc=",
        "X-Proofpoint-GUID": "ZvxfNtDkl6jpR_bQMvgbxJ-5JNIHX1C_",
        "X-Authority-Analysis": "v=2.4 cv=H67rBeYi c=1 sm=1 tr=0 ts=69ef516a cx=c_pps\n a=0uOsjrqzRL749jD1oC5vDA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22\n a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=pwJvMj_HW4Ly6_9t7PsA:9 a=QEXdDO2ut3YA:10\n a=mQ_c8vxmzFEMiUWkPHU9:22",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDI3MDEyOSBTYWx0ZWRfX3OKAkrpVLGhv\n wwkCAaXYtJ5EUSvO4WeFqojla841FcUCQ7HtwrOIZbbh8yMhzNt/EvvoFFBbOEqaHGc3PrFXK3h\n Rv2iU7d+sTFHz6KF0snfdEigTPuy21d2IDX9yIhTjtQjsnwEB9zRzUNX79k4NbUKnEeQlIuPCN0\n vHTtsU3KiSjff3H5m1TB8rys/c8gPJC4CRJ38s+oZmipTZ9svd/ujkYNbTHffAV+kP5J+YhgmBy\n HfLiMewQBi2Lm+1HJJ1ycCBK96BJluDoG80RvxiPgT6gkL9/Bt17kD46EnteEJPK7xREpoaA0Qv\n CqLSQDSQex86GSR3KtnyZg0YMvhcj5tpKKB2E3cq7zElxsIxuyVTKgUQXUVgxu6WBP37Ns+Iccg\n 8vEtMkcMKdqpxxUTW2jbmrixfvmgM6pm5GLBLusneazf7flrYWlCtcf5x5wZiErln0ZzS1zwpYF\n etZcCPI87rton4iflOQ==",
        "X-Proofpoint-ORIG-GUID": "ZvxfNtDkl6jpR_bQMvgbxJ-5JNIHX1C_",
        "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-27_03,2026-04-21_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n lowpriorityscore=0 bulkscore=0 adultscore=0 suspectscore=0 phishscore=0\n priorityscore=1501 spamscore=0 impostorscore=0 clxscore=1015 malwarescore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604270129",
        "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 documentation for the device selection syntax in fastboot\nblock device operations. Users can now specify target devices\nusing \"N:partition\" format where N is the device number.\n\nDocument usage examples for regular partition operations like\n\"fastboot flash 0:boot boot.img\" and partition table operations\nlike \"fastboot flash 1:gpt gpt.img\". When no device number is\nspecified, the default from CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID\nis used.\n\nReviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>\nSigned-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>\n---\nChanges in v2:\n- No changes\n---\n doc/android/fastboot.rst | 41 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 41 insertions(+)",
    "diff": "diff --git a/doc/android/fastboot.rst b/doc/android/fastboot.rst\nindex 19e2ee9d407..ce3a030e701 100644\n--- a/doc/android/fastboot.rst\n+++ b/doc/android/fastboot.rst\n@@ -147,6 +147,38 @@ The Fastboot implementation in U-Boot allows to write images into disk\n partitions. Target partitions are referred on the host computer by\n their names.\n \n+Device Selection for Block Devices\n+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n+\n+When using ``FASTBOOT_FLASH_BLOCK``, you can specify which block device to\n+target by prefixing the partition name with the device number and a colon.\n+\n+Syntax::\n+\n+    <device_number>:<partition_name>\n+\n+Examples::\n+\n+    fastboot flash 0:boot boot.img        # Flash to device 0, partition \"boot\"\n+    fastboot flash 1:system system.img    # Flash to device 1, partition \"system\"\n+    fastboot flash 0:gpt gpt.img          # Write GPT to device 0\n+    fastboot flash 1:mbr mbr.img          # Write MBR to device 1\n+\n+If no device number is specified, the default device from\n+``CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID`` is used::\n+\n+    fastboot flash boot boot.img          # Uses default device\n+\n+This syntax is supported for:\n+\n+* Regular partition flashing\n+* GPT partition table updates (``gpt`` or ``N:gpt``)\n+* MBR partition table updates (``mbr`` or ``N:mbr``)\n+* Partition erasing operations\n+\n+Partition Name Formats\n+^^^^^^^^^^^^^^^^^^^^^^\n+\n For GPT/EFI the respective partition name is used.\n \n For MBR the partitions are referred by generic names according to the\n@@ -186,6 +218,15 @@ configuration options:\n    CONFIG_FASTBOOT_GPT_NAME\n    CONFIG_FASTBOOT_MBR_NAME\n \n+When using block devices (``FASTBOOT_FLASH_BLOCK``), you can specify the target\n+device by prefixing with the device number::\n+\n+   fastboot flash 0:gpt gpt.img    # Write GPT to device 0\n+   fastboot flash 1:mbr mbr.img    # Write MBR to device 1\n+\n+If no device number is specified, the default device from\n+``CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID`` is used.\n+\n In Action\n ---------\n \n",
    "prefixes": [
        "v2",
        "4/4"
    ]
}