get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216610,
    "url": "http://patchwork.ozlabs.org/api/patches/2216610/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260326-env-scsi-hw-part-support-v1-5-55c9dd07a2cb@baylibre.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": "<20260326-env-scsi-hw-part-support-v1-5-55c9dd07a2cb@baylibre.com>",
    "list_archive_url": null,
    "date": "2026-03-26T22:59:27",
    "name": "[5/6] env: scsi: add CONFIG_ENV_SCSI_HW_PARTITION",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "84e398cea1f92136f4620c382fe34cf1c5476f28",
    "submitter": {
        "id": 87228,
        "url": "http://patchwork.ozlabs.org/api/people/87228/?format=api",
        "name": "David Lechner",
        "email": "dlechner@baylibre.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260326-env-scsi-hw-part-support-v1-5-55c9dd07a2cb@baylibre.com/mbox/",
    "series": [
        {
            "id": 497665,
            "url": "http://patchwork.ozlabs.org/api/series/497665/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497665",
            "date": "2026-03-26T22:59:22",
            "name": "env: scsi: support SCSI env without partition UUID",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497665/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216610/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216610/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=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=Pld5w/9Q;\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=baylibre.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=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.b=\"Pld5w/9Q\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=dlechner@baylibre.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 4fhfQq2mGVz1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 10:01:23 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id EEC8A83DBF;\n\tFri, 27 Mar 2026 00:00:46 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id F2FBE83DBF; Fri, 27 Mar 2026 00:00:32 +0100 (CET)",
            "from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com\n [IPv6:2001:4860:4864:20::2e])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 97FCB83FC6\n for <u-boot@lists.denx.de>; Fri, 27 Mar 2026 00:00:24 +0100 (CET)",
            "by mail-oa1-x2e.google.com with SMTP id\n 586e51a60fabf-41cd9267bbfso674473fac.1\n for <u-boot@lists.denx.de>; Thu, 26 Mar 2026 16:00:24 -0700 (PDT)",
            "from [127.0.1.1] ([2600:8803:e7e4:500:54a7:4cbc:7d2e:3b99])\n by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-41ccb6b1d25sm2742836fac.16.2026.03.26.16.00.21\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 16:00:22 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,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;\n d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1774566023;\n x=1775170823;\n 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=wBXZJW+hpG1CXpQxpOWWvqgWDLts20NXX8w8TmDMG1Y=;\n b=Pld5w/9Qj5GB+57BPjSpEglcc64HwUE/DlisUO2cdESGskar3/AkLpjxVTiF8EPat+\n jR5tgwQtMGudxop01vAMmFWoB0zYb5KtY/oDijJKw8OM9g0E3gZNjnin4xw1JOvBZ1/7\n TCcieKP82wsJUCRz/z/dN6+dKz5OGI4orOQKsXuxK0QyT3Z1Lm0Len+KvfbInWA2/0NV\n uLLhJ+2YTPbDKWcIy74abjDtG+eNlLAzDRPALRtM7WSIW9Og69oMxvIu/xiu2c2vKv4g\n OiuTcgCb9KMvW4Ea8baBt7WwQxrebe7zEf5S/9IlrjMuwQJZ1ft7j/OIHQURkIZgwjPN\n PETQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774566023; x=1775170823;\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=wBXZJW+hpG1CXpQxpOWWvqgWDLts20NXX8w8TmDMG1Y=;\n b=QR9o0z9/eJJZQoLEioUZ35VdM4/wQMVOZ6qOdldIklMVcQ7MXOGn0SjWNBIfcZ42UG\n oMfPW0YmsgPoczg8sfrsgUaAE4ajAcgyFXeeCfZKcfQ91UfKPPxYJQVlz81GTMOLrvJx\n VazF2oI7Fy6UCqboKE9yUDBUbM/7FjSq+iyp9lOHPuvt2GGED31gT6IQ2h/VQS16ibNV\n 9k9+dDpRjEDhiN+gVNOktDR/0UnCjnKoqICgTKyeIpbYz8X3fuwW45JD93O9NBTsH7eC\n /34wUYyspfcBmfvl6+3d+k3Sl0TOR2gCU36sytdbXtYfw/vntF+RSXo/Dfaz7U9dHMmT\n gdzQ==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWVSYV6ta8r3IVbuEibLVXzOJwS5sJPoLmux2lFlY2gSMcNrlRolG7/YIzB+YBaI0PalWgf300=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0Yw5Qb7vCmD2aYhSOwc77waBOFr3BhpRX0y+rHz4cbmRZmoS+pLy\n 8Q1tmuirM4ewvcK6zQ9kZoVYMQsuEi1OuSYr0V1+Yrz/KFdAGN4iHsjN/emLe0Kot88=",
        "X-Gm-Gg": "ATEYQzwV0j6b3A1Ye9bpY0rKwc6hOxf8l9T3njpjVcpe5pHwAsZv8OFv1pfbsqMyoXX\n +gF2cieIT5XGN4Yc7efzK92Vvvb8cAUXIdAZFY3Y0lGsoCsl6wEkhHeyeKh+solHEd1VLt8Akes\n 6Z/qGnoNZvxPFUuncemf4oP82bhJeT1M5xJb5tpJxj2af59pTjGLWX4u1hHJIvWqzbhIwn/2z/2\n kr24KonOzIxq9e7HXiEWp6Q8qu3pZm/jvykvtDdCKspZBzpgY4rUg0UmRUlatndMVOL2QmYJmzm\n jbbDamiC3mcKz9XUG8N/VVIHhd9m4GhRr6OmZT9yXXtd1lLrTK8pP/M4uXFv7iRfEync4Pomaov\n aWMr5JnOOl727uZeVvUs3fSZrhPTFShTY+l+jA6T/LAuu6SSmfcat0fFac3R8TmoB5e75OYnz+P\n UEi9cXmC5Fu+mGp2Gsr8QUmF5ZvJPC",
        "X-Received": "by 2002:a05:6870:c20b:b0:41c:17f:2f7b with SMTP id\n 586e51a60fabf-41cec4cc246mr72375fac.10.1774566022828;\n Thu, 26 Mar 2026 16:00:22 -0700 (PDT)",
        "From": "David Lechner <dlechner@baylibre.com>",
        "Date": "Thu, 26 Mar 2026 17:59:27 -0500",
        "Subject": "[PATCH 5/6] env: scsi: add CONFIG_ENV_SCSI_HW_PARTITION",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260326-env-scsi-hw-part-support-v1-5-55c9dd07a2cb@baylibre.com>",
        "References": "<20260326-env-scsi-hw-part-support-v1-0-55c9dd07a2cb@baylibre.com>",
        "In-Reply-To": "\n <20260326-env-scsi-hw-part-support-v1-0-55c9dd07a2cb@baylibre.com>",
        "To": "Casey Connolly <casey.connolly@linaro.org>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Sumit Garg <sumit.garg@kernel.org>,\n Varadarajan Narayanan <quic_varada@quicinc.com>,\n Tom Rini <trini@konsulko.com>",
        "Cc": "Julien Stephan <jstephan@baylibre.com>, u-boot-qcom@groups.io,\n u-boot@lists.denx.de, David Lechner <dlechner@baylibre.com>",
        "X-Mailer": "b4 0.16-dev",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2743; i=dlechner@baylibre.com;\n h=from:subject:message-id;\n bh=xOufSiZDw6JMrlH/VBpKuUYstTl8yODBp8Csymlx4WA=;\n b=owEBhAF7/pANAwAKAcLMIAH/AY/AAcsmYgBpxbpxv8eOzI4cPKMnjXt2GvVHFCYj8P1yRWHRK\n MD0tHRHgfyJAUoEAAEKADQWIQTsGNmeYg6D1pzYaJjCzCAB/wGPwAUCacW6cRYcZGxlY2huZXJA\n YmF5bGlicmUuY29tAAoJEMLMIAH/AY/Ae/MH/3p5nE1rB2I7kVvAwq0xfJSQiE0ZsaUgyResHQe\n Oecs2qCjRRngg11TTijh+hb9TrEoleySmHc1iq2t3K7BhzqpDmOYcAxwH89Qi9gcvDzKzGm0DMf\n RYLwBraeaLnDNdJ0wIqaBU7U69jZ3mhp6O2r1+r4LRXrN76l9fNm9wp782j6iRHM1xy2Oqd3Y7U\n udgJ4DDXp/sggQbHXKyUQQN9bRSWdsh/0wnCRbShyvXy+U0l48BvR3MoQeluzH2kp2CvZrLJo/b\n z46waFTmdVVqUVLuOKreVtWP1NUeS2JDMF/0WtHXl8Ye2W0csTrp+KfYebxwLW050Ei3uRDr5Dg\n DniM=",
        "X-Developer-Key": "i=dlechner@baylibre.com; a=openpgp;\n fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03",
        "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 CONFIG_ENV_SCSI_HW_PARTITION and supporting code to allow loading\nthe environment directly from a SCSI device without a partition table.\nSome platforms store the environment directly on the SCSI device without\na way to look it up by partition UUID.\n\nSigned-off-by: David Lechner <dlechner@baylibre.com>\n---\n env/Kconfig | 11 +++++++++++\n env/scsi.c  | 22 ++++++++++++++++++----\n 2 files changed, 29 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/env/Kconfig b/env/Kconfig\nindex 5824f762870..ffaf16c581c 100644\n--- a/env/Kconfig\n+++ b/env/Kconfig\n@@ -762,6 +762,17 @@ config ENV_MMC_USE_DT\n \t  The 2 defines CONFIG_ENV_OFFSET, CONFIG_ENV_OFFSET_REDUND\n \t  are not used as fallback.\n \n+config ENV_SCSI_HW_PARTITION\n+\tstring \"SCSI hardware partition number\"\n+\tdepends on ENV_IS_IN_SCSI\n+\tdefault 0\n+\thelp\n+\t  SCSI hardware partition device number on the platform where the\n+\t  environment is stored.  Note that this is not related to any software\n+\t  defined partition table but instead if we are in the user area, which is\n+\t  partition 0 or the first boot partition, which is 1 or some other defined\n+\t  partition.\n+\n config ENV_SCSI_PART_UUID\n \tstring \"SCSI partition UUID for saving environment\"\n \tdepends on ENV_IS_IN_SCSI\ndiff --git a/env/scsi.c b/env/scsi.c\nindex 1787dcca92a..f4986353da5 100644\n--- a/env/scsi.c\n+++ b/env/scsi.c\n@@ -41,8 +41,14 @@ static inline struct env_scsi_info *env_scsi_get_part(void)\n \t\tis_scsi_scanned = true;\n \t}\n \n-\tif (scsi_get_blk_by_uuid(CONFIG_ENV_SCSI_PART_UUID, &ep->blk, &ep->part))\n-\t\treturn NULL;\n+\tif (CONFIG_ENV_SCSI_PART_UUID[0] == '\\0') {\n+\t\tif (blk_get_device_part_str(\"scsi\", CONFIG_ENV_SCSI_HW_PARTITION,\n+\t\t\t\t\t    &ep->blk, &ep->part, true))\n+\t\t\treturn NULL;\n+\t} else {\n+\t\tif (scsi_get_blk_by_uuid(CONFIG_ENV_SCSI_PART_UUID, &ep->blk, &ep->part))\n+\t\t\treturn NULL;\n+\t}\n \n \tep->count = CONFIG_ENV_SIZE / ep->part.blksz;\n \n@@ -89,12 +95,20 @@ static int env_scsi_load(void)\n \tint ret;\n \n \tif (!ep) {\n-\t\tenv_set_default(CONFIG_ENV_SCSI_PART_UUID \" partition not found\", 0);\n+\t\tif (CONFIG_ENV_SCSI_PART_UUID[0] == '\\0')\n+\t\t\tenv_set_default(\"SCSI partition \" CONFIG_ENV_SCSI_HW_PARTITION \" not found\", 0);\n+\t\telse\n+\t\t\tenv_set_default(CONFIG_ENV_SCSI_PART_UUID \" partition not found\", 0);\n+\n \t\treturn -ENOENT;\n \t}\n \n \tif (blk_dread(ep->blk, ep->part.start, ep->count, &envbuf) != ep->count) {\n-\t\tenv_set_default(CONFIG_ENV_SCSI_PART_UUID \" partition read failed\", 0);\n+\t\tif (CONFIG_ENV_SCSI_PART_UUID[0] == '\\0')\n+\t\t\tenv_set_default(\"SCSI partition \" CONFIG_ENV_SCSI_HW_PARTITION \" read failed\", 0);\n+\t\telse\n+\t\t\tenv_set_default(CONFIG_ENV_SCSI_PART_UUID \" partition read failed\", 0);\n+\n \t\treturn -EIO;\n \t}\n \n",
    "prefixes": [
        "5/6"
    ]
}