get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221655,
    "url": "http://patchwork.ozlabs.org/api/patches/2221655/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260410-fb_block-v1-2-68f0c976fe0e@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": "<20260410-fb_block-v1-2-68f0c976fe0e@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-04-10T04:42:01",
    "name": "[2/2] 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/people/90810/?format=api",
        "name": "Balaji Selvanathan",
        "email": "balaji.selvanathan@oss.qualcomm.com"
    },
    "delegate": {
        "id": 117687,
        "url": "http://patchwork.ozlabs.org/api/users/117687/?format=api",
        "username": "mkorpershoek",
        "first_name": "Mattijs",
        "last_name": "Korpershoek",
        "email": "mkorpershoek@baylibre.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260410-fb_block-v1-2-68f0c976fe0e@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 499389,
            "url": "http://patchwork.ozlabs.org/api/series/499389/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499389",
            "date": "2026-04-10T04:41:59",
            "name": "fastboot: block: Add GPT/MBR and device selection",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499389/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221655/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221655/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=ESJ1Kocc;\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=Iot3wnnU;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; 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=\"ESJ1Kocc\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"Iot3wnnU\";\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 [85.214.62.61])\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 4fsPL3188Yz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 14:42:35 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 42C25839D9;\n\tFri, 10 Apr 2026 06:42:24 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 8F04984106; Fri, 10 Apr 2026 06:42:21 +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 78111839D9\n for <u-boot@lists.denx.de>; Fri, 10 Apr 2026 06:42:18 +0200 (CEST)",
            "from pps.filterd (m0279863.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 639L0X0Y1972554\n for <u-boot@lists.denx.de>; Fri, 10 Apr 2026 04:42:16 GMT",
            "from mail-pg1-f200.google.com (mail-pg1-f200.google.com\n [209.85.215.200])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4decms2q14-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Fri, 10 Apr 2026 04:42:16 +0000 (GMT)",
            "by mail-pg1-f200.google.com with SMTP id\n 41be03b00d2f7-c76c60c74f3so1094577a12.2\n for <u-boot@lists.denx.de>; Thu, 09 Apr 2026 21:42:16 -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 d2e1a72fcca58-82f0c4b3b29sm1198815b3a.36.2026.04.09.21.42.11\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 09 Apr 2026 21:42:14 -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 cc:content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n kBY3I0NljI9TruewJ5CsMTBXVJpLjduT4hbbVG/CoVo=; b=ESJ1KoccqvnHwqGd\n yLXhZG7tzg8UGnKstjpSVpD3DHjY98EKROKDH0jqzQYOYnTQLygVWfKwXcMl6rdF\n Vey5ujUj3+iJodz0hZLUD38sfSRZLdQlvp7nftkWIMXAl2y7zUQqGC2DBKuJ+fkp\n jmCndB/xI1fw9B1ESOYY68vpURBudjbgKRAqrvBGPIlYNlnZ22UVn0FJWb+801ic\n spAid1ltO4W/sOfsud9XCFyWzjDh7RYpBZyra+dyacIc7G7dJ9ilohtODetEDNpC\n 09BeRgrEGrg+4giN2/VRLt3hMSuV1hWbPMEFjbFdTlcVz9Bti/xNIj325Q6EgcJe\n EDXJTQ==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1775796136; x=1776400936; 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=kBY3I0NljI9TruewJ5CsMTBXVJpLjduT4hbbVG/CoVo=;\n b=Iot3wnnU4o2JXs7Ft1p2jBDKxauHhhY1tmABeSdU3O2PkvCeidsHsnm4i2+HWEPIjG\n NE11AuuZSzByD3O1b88p+bBqrdo23MyyvPAq9cGbwUvBQkE3sUBhUBkaZDeR5o3CA/AQ\n 73FnfBFAXkjc4dmeTrHCfCTI/m04sSM4DcAXewXJad8uVxstd9vGtxi5leExVYm05NGh\n UK+h7gOOyEgr4oCiwB2XyX5Q5am5iJzbKLmUGZ3IAKcMUKq2XdqTVzrD8GtmpzpN5qjK\n hYJ1WaR6D5fzHw3CAzXk9HmJq3k4ZJDCdEdXjDNWn0owsdsYpH67v0Bgg8ZmpFpexVkX\n tODQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775796136; x=1776400936;\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=kBY3I0NljI9TruewJ5CsMTBXVJpLjduT4hbbVG/CoVo=;\n b=jNualAetw91MPLqFyt9ZqG0kfgBjlsw/n+wr7gqcY5Sihx19qPhY5TdTS9jsfzowI1\n VXLM0Hl9rOCvP5PcIMkXfa5QZ4+4D7HGckY2t7dwIGOKktFFkeaxBrp+PuUdJi5lM/r3\n EztblonFBC1MXVG1ZwIUfSb8Z0AyRyinJ66+oCVU8WwEdMvoF0vZ7ZRKLa3D0opdQeu9\n 2GWEkzXyPJaBS4WnyXdHz+vq1VerhBupst1+ShCrBAMo398d+Dedymxnfrb3K+J2jP7T\n 6qf8FREY/Oagzl12O/XMTzWSFY64khMq6oJefB0chLAXsqL8YTajIdTgbsSZXh7ILpZk\n aIfw==",
        "X-Gm-Message-State": "AOJu0YwtBt+5aXRWRGfGK09K3NexoIVRlOc1cRWv1Pk85I4bd1Oj4Ca3\n 5q8oIADMjDi9ICc4N6fN3zXZru2DnB3jHpe1SpsYrWtRbcG5eAFEHr7KZTLjhzAYbHeKsgBbeCy\n KXaIalCsH56AdmU8cD6/R5OaYVOwXtwAxH0AbRG/hXJ8Y0XHSNWds8+s1",
        "X-Gm-Gg": "AeBDieupuwuXCMWGcBA1RjJOhwMF7PQHKpZWz209e4pE+BEhnHWqP1rub/lRAcsDAew\n 95o2xj/CyJeX3s9vrgXWNDn/EARN/wloK6qCYdZWgWdZ3ODYtubPkL5s8OdhI4i0LFLfHxOVkuJ\n P1//L3MF3C9fa1uQc2Pw+ULRd3YEtZrUequbZULqndkI/YvM1xnf/fgyQo+IOhLnNbuw6kXTsxo\n ZcQx3aKufyCtnLFfMpKSUHj9sMrzNX4shKwzRXYv/i2h9HeHxMlk2GLB0HSJrZHdgY6FePPZBiO\n 1CdQ7NRXsMkra0VP/Xe+7Lh6yp++r5q+T7VMEopBMulm+g0i01zzzY6kzoolvkbZdxRcg3R1HuQ\n 28eruy5lz3jG1tu1k8d74v/61JKY1yHHyg8hhfgP3C8xlkPY77AKyZV42Neca+Rt2pk7aLM9bv3\n rJzyf5sLxYiR7pmztOJSe6JbT/5T5ygchbfPCevOrGn40IiJzj2w==",
        "X-Received": [
            "by 2002:a05:6a00:a228:b0:829:809e:8977 with SMTP id\n d2e1a72fcca58-82f0c358230mr2008972b3a.49.1775796135649;\n Thu, 09 Apr 2026 21:42:15 -0700 (PDT)",
            "by 2002:a05:6a00:a228:b0:829:809e:8977 with SMTP id\n d2e1a72fcca58-82f0c358230mr2008931b3a.49.1775796135082;\n Thu, 09 Apr 2026 21:42:15 -0700 (PDT)"
        ],
        "From": "Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>",
        "Date": "Fri, 10 Apr 2026 10:12:01 +0530",
        "Subject": "[PATCH 2/2] doc: fastboot: Document block device selection syntax",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260410-fb_block-v1-2-68f0c976fe0e@oss.qualcomm.com>",
        "References": "<20260410-fb_block-v1-0-68f0c976fe0e@oss.qualcomm.com>",
        "In-Reply-To": "<20260410-fb_block-v1-0-68f0c976fe0e@oss.qualcomm.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Tom Rini <trini@konsulko.com>,\n Ariel D'Alessandro <ariel.dalessandro@collabora.com>,\n Jerome Forissier <jerome.forissier@arm.com>,\n Dmitrii Merkurev <dimorinny@google.com>, Michael Walle <mwalle@kernel.org>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Heiko Schocher <hs@nabladev.com>,\n Adrian Freihofer <adrian.freihofer@siemens.com>,\n Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>",
        "X-Mailer": "b4 0.14.3",
        "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1775796123; l=2708;\n i=balaji.selvanathan@oss.qualcomm.com; s=20260213; h=from:subject:message-id;\n bh=yfoXaj9Vin/uKgBCNvhLko3vCq8sYb9m/uwkOggxA0I=;\n b=h4MAal5Udbb0T+yCi32f9sKVZYytZPdyaeYe5ueAr1s3Tml7/lFSQRMWJ+gG2VQp1IxcI/9Vh\n zM7VIV/N5mlAb6D0TRuC6Mx+cQQBBO5b3jnQe8d30xLAn1fIWotSitu",
        "X-Developer-Key": "i=balaji.selvanathan@oss.qualcomm.com; a=ed25519;\n pk=CDpYiUU3SH7KGEtsBvY2tBGPiWfMxqWJF0p2LftOfnc=",
        "X-Proofpoint-ORIG-GUID": "mn6apOD3ob2J1LkmHfIt75qbJPO5e8gZ",
        "X-Proofpoint-GUID": "mn6apOD3ob2J1LkmHfIt75qbJPO5e8gZ",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDEwMDA0MCBTYWx0ZWRfX0LPrRUMv8TkQ\n i532XzzJ/vx8kUT69J4zRYZi8Hd4oQZ/otzSk/Z5wgLPa42GIDDZXN8wJ642u9Mncgxo27EvzRi\n T+I2oe52D09mJmeWbeHIQ6FfUsjUTq9UZUpYaSxIT8aoD1fS3JVXAF+AHiR7EpQ4ojXhEoNoy7d\n V/IKvDgW2YHUpdwXkIW81SrZLxdSUYaQfisvUj7rjithqU8hEG1Ym73oO1r2I9XwyrVOcXMkMfq\n Xbm7ZB27pIzV4MqgETyDZ6/h2rU0gkNpC+ykKb9m+icZrnUw0+diWTVAdphYuFJWRTdx9PgNRGM\n 5lFMg0YwbPmURWJGFiQ1BCmTTs70MPAOldQL7eIJp296lfwkG6YrAcRIVs6H4YBBTYGN2eXLwVb\n Shll2G+LVvGCjQfbp/XU0Sf+LOaOVUYT1jW/104ZYdkQrw9sqKj+qgd93lDcfsrN1orH41JZUeD\n hZZnRz+7G/mwIffXrjA==",
        "X-Authority-Analysis": "v=2.4 cv=N/sZ0W9B c=1 sm=1 tr=0 ts=69d87fa8 cx=c_pps\n a=oF/VQ+ItUULfLr/lQ2/icg==: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=yOCtJkima9RkubShWh1s:22\n a=EUspDBNiAAAA:8 a=LaZClvyRMV3iiGpkPsEA:9 a=QEXdDO2ut3YA:10\n a=3WC7DwWrALyhR5TkjVHa:22",
        "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-10_01,2026-04-09_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n clxscore=1015 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0\n lowpriorityscore=0 priorityscore=1501 impostorscore=0 spamscore=0\n suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604010000\n definitions=main-2604100040",
        "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\nSigned-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>\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": [
        "2/2"
    ]
}