get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224983,
    "url": "http://patchwork.ozlabs.org/api/patches/2224983/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260420060954.33211-1-briansune@gmail.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": "<20260420060954.33211-1-briansune@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-20T06:09:54",
    "name": "[v2] Improve handosff prepare on SoCFPGA",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "843e56c618b71132776ce791c89bad81c24a7c3b",
    "submitter": {
        "id": 91590,
        "url": "http://patchwork.ozlabs.org/api/people/91590/?format=api",
        "name": "Brian Sune",
        "email": "briansune@gmail.com"
    },
    "delegate": {
        "id": 152680,
        "url": "http://patchwork.ozlabs.org/api/users/152680/?format=api",
        "username": "TIENFONG",
        "first_name": "TIEN FONG",
        "last_name": "CHEE",
        "email": "tien.fong.chee@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260420060954.33211-1-briansune@gmail.com/mbox/",
    "series": [
        {
            "id": 500556,
            "url": "http://patchwork.ozlabs.org/api/series/500556/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500556",
            "date": "2026-04-20T06:09:54",
            "name": "[v2] Improve handosff prepare on SoCFPGA",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/500556/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224983/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224983/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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=gh0RSr5Z;\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=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b=\"gh0RSr5Z\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=briansune@gmail.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 4fzZpS3Hrcz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 16:10:08 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id BD000840D8;\n\tMon, 20 Apr 2026 08:10:05 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 5E2E98421A; Mon, 20 Apr 2026 08:10:05 +0200 (CEST)",
            "from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com\n [IPv6:2607:f8b0:4864:20::102e])\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 B123683B99\n for <u-boot@lists.denx.de>; Mon, 20 Apr 2026 08:10:02 +0200 (CEST)",
            "by mail-pj1-x102e.google.com with SMTP id\n 98e67ed59e1d1-356337f058aso1620480a91.2\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 23:10:02 -0700 (PDT)",
            "from intel-VirtualBox.. ([94.156.205.70])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-36140ff2e1esm8697051a91.8.2026.04.19.23.09.59\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 19 Apr 2026 23:10:00 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_GMAIL_RCVD,FREEMAIL_FROM,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776665401; x=1777270201; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=ow3LYPa3AMZDEMytQoXZLWV7aRCWTX4zuW+ZXJ943bo=;\n b=gh0RSr5ZlI2K4U12ZMSE0NNb8/GeC1wml6oeDcNwPavzLAUdl/Ijm1E77ibNTXat0z\n TkIDIqGPC1GMO6qW4LKsXoDmSx9nx85LpIhiyK0chGowuvcQYutGH8fyiJswZq0pG+zw\n 9fYa3ZYsAoFuaMr8PWYuwYAA6zGf+QLsViXF2d+oKvCKHXJ7hK4s6eQJlCDixTJaOW30\n 9Von5FLXJIrhEpQqkqXtxMNT/iEMvAFantRpY90hNWIInRorwpFicTVgOpFq7d4OYQ1e\n 5YvFX69F55P6CCVrsbbBLleUfzghG66+tXLLdliGzcFnATp7ubXsTGRpXsGb9er+/ShR\n bYbQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776665401; x=1777270201;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=ow3LYPa3AMZDEMytQoXZLWV7aRCWTX4zuW+ZXJ943bo=;\n b=sxhKVF8X5b2FP/szpH+atPJIT3Wp2DLgvPnetMun5qe+d1V5+okGTxPPgWe3DCTEp6\n 2yVMTHUiMg5WPJ6qsQDPg0Q6nBi52XM3iRZsHNNpvdtgYshrsMvaIYv3mEFM1e4zMHry\n Ckqg3EBovL51uk1zenW6yoWVp8LX25ejL5LWuKllnPCHJXfVetZgRnJAfwUEzBBwdFpf\n T98jurp+pCoWLzoxvorWMVFZ/DmksETF4Rra1mMOnyW5GFazQ/8VI1nJpRcWmnUy3rFx\n sr0EKy4iTTaYASvkSo8EePlXiLM9hsu/su9vGJwqA3SEpQICmVJmWmHcKM6UyfpE9ZFk\n vrzQ==",
        "X-Gm-Message-State": "AOJu0Ywhld1CgJCrQX5Zo3c4Qgg8bIM1dESV5liW0/10N9y4nFPjOluO\n s4M4aNX06hZ20lashmT5bYURftNM81LCRQNazpwpe+bR/Dspecgj11sVnBtio1Ri",
        "X-Gm-Gg": "AeBDiesq+5ps9+TwxeSssrogC5RW7InFZOTCaL4PyPmNt/yppEmRoGMuHh/caPiOh4p\n FChLQOLfiBrFmpOnt3hyVs/H35O6eNpr/GGvjmS0hFoFCDmtCJ6po2YonCYUqySEiKy1KVqv5de\n OBY2Ahbfj/PzwtfUQfHVWe+iFJq1Bn1KHiaa3tAy4LMEGIOt0JmPlVqkcwFwk/+qQ2frRJJz91s\n dSOdwMpQzy/DosAldd69BzCvhE9zxmW4V4fNVYjK47JutwSxMMLMcRlVJawhA2pilNjBnsqSd8y\n bT/SPxOtmtUvujQgBB7GQCs9doJPzVnbKOL8AfZ3+ZRgm8PasU7OzXxErPHBWeWb1aRi7YbL9yQ\n 6ssy3gGX3bOA2HxTE/wTVy7NYRrYfxFsuWdqNI3H4tpXI5HvGxJWuNHPTWcsl18Zwd9mg5dIt+u\n ny7HgRSpJdAqdNAW9UYE/Kg9tfJcINi2yfLcv029JyYiXTSOtg3iVwfBbCCCiIQffxuQ==",
        "X-Received": "by 2002:a17:90a:dfd0:b0:35e:30bc:96ed with SMTP id\n 98e67ed59e1d1-36140402361mr12470983a91.10.1776665400849;\n Sun, 19 Apr 2026 23:10:00 -0700 (PDT)",
        "From": "Brian Sune <briansune@gmail.com>",
        "To": "u-boot@lists.denx.de,\n\tTom Rini <trini@konsulko.com>",
        "Cc": "Brian Sune <briansune@gmail.com>",
        "Subject": "[PATCH v2] Improve handosff prepare on SoCFPGA",
        "Date": "Mon, 20 Apr 2026 14:09:54 +0800",
        "Message-Id": "<20260420060954.33211-1-briansune@gmail.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "There are some cases that the Python scripts\nare run and the qts files are not replaced.\nMake sure qts folder h files are removed before\nhandoff script runs.\n\nSigned-off-by: Brian Sune <briansune@gmail.com>\n---\n arch/arm/mach-socfpga/config.mk | 10 +++++++++-\n 1 file changed, 9 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/arch/arm/mach-socfpga/config.mk b/arch/arm/mach-socfpga/config.mk\nindex 1ca1d33cb16..d4998298741 100644\n--- a/arch/arm/mach-socfpga/config.mk\n+++ b/arch/arm/mach-socfpga/config.mk\n@@ -43,6 +43,14 @@ socfpga_g5_handoff_prepare:\n \t\t\texit 0; \\\n \t\tfi; \\\n \t\techo \"[INFO] Found hiof file: $$HIOF_FILE\"; \\\n+\t\techo \"[INFO] Clean old BSP files...\"; \\\n+\t\tif ls \"$$BOARD_DIR/qts\"/*.h >/dev/null 2>&1; then \\\n+\t\t\trm \"$$BOARD_DIR/qts\"/*.h; \\\n+\t\t\techo \"[INFO] Removed old BSP files...\"; \\\n+\t\tfi; \\\n \t\techo \"[INFO] Running BSP generator...\"; \\\n-\t\tpython3 $(srctree)/tools/cv_bsp_generator/cv_bsp_generator.py -i \"$$HANDOFF_PATH\" -o \"$$BOARD_DIR/qts\" || echo \"[WARN] BSP generator failed, continuing...\"; \\\n+\t\tif ! python3 $(srctree)/tools/cv_bsp_generator/cv_bsp_generator.py -i \"$$HANDOFF_PATH\" -o \"$$BOARD_DIR/qts\"; then \\\n+\t\t\techo \"[ERR] BSP generator failed!\"; \\\n+\t\t\texit 1; \\\n+\t\tfi; \\\n \t\techo \"[DONE] SoCFPGA QTS handoff conversion complete.\"\n",
    "prefixes": [
        "v2"
    ]
}