get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2228269,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228269/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260423031155.14747-1-briansune@gmail.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": "<20260423031155.14747-1-briansune@gmail.com>",
    "date": "2026-04-23T03:11:55",
    "name": "[v6] Improve handoff prepare on SoCFPGA",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6d6bb7b83e615761329417b84dd5e2d4a2218f0d",
    "submitter": {
        "id": 91590,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/91590/?format=api",
        "name": "Brian Sune",
        "email": "briansune@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260423031155.14747-1-briansune@gmail.com/mbox/",
    "series": [
        {
            "id": 501475,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501475/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501475",
            "date": "2026-04-23T03:11:55",
            "name": "[v6] Improve handoff prepare on SoCFPGA",
            "version": 6,
            "mbox": "http://patchwork.ozlabs.org/series/501475/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228269/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228269/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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=W7a8dFJj;\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=\"W7a8dFJj\";\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 4g2ycL1s3fz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 04:13:05 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id D232584324;\n\tSat, 25 Apr 2026 20:13:02 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 8315884401; Sat, 25 Apr 2026 20:13:01 +0200 (CEST)",
            "from mail-ua1-x933.google.com (mail-ua1-x933.google.com\n [IPv6:2607:f8b0:4864:20::933])\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 46E46842FC\n for <u-boot@lists.denx.de>; Sat, 25 Apr 2026 20:12:59 +0200 (CEST)",
            "by mail-ua1-x933.google.com with SMTP id\n a1e0cc1a2514c-9568bae58f7so4460752241.3\n for <u-boot@lists.denx.de>; Sat, 25 Apr 2026 11:12:59 -0700 (PDT)",
            "from intel-VirtualBox.. ([94.156.205.152])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b5fab3bd2bsm189529935ad.74.2026.04.22.20.11.58\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Apr 2026 20:12: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=1777140778; x=1777745578; 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=wBFNCyQF1/ZQAKnYTf+xmEqUnMrUmNb6GuodGV0JMqw=;\n b=W7a8dFJj3pi7oXdx+dl565JV+8Ia8J0+OTZM29UOLDFhFZTA2ms7R9OICfS8OA2W32\n +sX54l3NoYBvkl2MnNAh4GCIpATLxGjt+rJWKR5rU9gBOyo32ANvtN38P9ocZx3Rh6uI\n FFQ8DImlK40tyA2lui1X9KO7o9zYfaAzJaSlzKIXzAoU5stW9AvLKlaAOztUUP4eOzCj\n 3UTOl0bEtifZDH6tw8EPXF42FUHDyN+c9FaGXNlCTs1OzL5LOeISjQ99He0UjAk+qdH4\n E3twn/Bfmd2lA2C8moF6i/rNPcxw4kg1uDuzXSUtcoq1gi+1qNsfYjh4Of8drG8S90qw\n CRAQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777140778; x=1777745578;\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=wBFNCyQF1/ZQAKnYTf+xmEqUnMrUmNb6GuodGV0JMqw=;\n b=nuM/hZezbnK0RhbpLvq9hrRdT4Rw2w0czhEhuBzrSZSBzShsJHGql0QPdQy6AyoJ3Z\n m+twv6vTsiNk2Mex1c+BLPbvo9eB2uDevBDJ44H2uPjwd4UyZFCqQIDlGcEVLoeXz0qv\n 19nbtiry4ef40fIZhPuEO7atdx7YnDhBeaUGCEUA3q/Ufhx1qNhcj0WN0DjCvNyhzmR7\n P8nM0PvqTjOHcVgzNES2BtEk/5MPWNtzqqEsRHsxdhob3RAVbQz58YHAdAtsKj5fWW9o\n uBGwdmi6g/OUBbna5tF7yb/8wp7OL3ywmtwbuiuYRCX8HErHI0TrJp5JXxtu1/cNHsJU\n z/3Q==",
        "X-Gm-Message-State": "AOJu0YyJlkAkh/PA1D9GYxasvD55lESgusQYplL/b2xH0Z1ZZxAhR5Ut\n AvhP/3dMSih1SFArXM35kbStpW5crVx/6VRiFEsvTn+rSN35X8d87i4TQFpkHPs8maF9DA==",
        "X-Gm-Gg": "AeBDiesXn6u08tzB20iKNblXWo7PXwf7VcTls013yYedj83uHIrhBBWQx051lLB/yqD\n 8UFEPk7SxXPSP0HAryseqxcVPeYbM6Mrn9yhpVToHL9U8XJn8S49oplAhZ2l/0jDLMzkgpYny5f\n XjOQRgwbCXsiDQd1WLKjJkHIh7FM5+P2vuwu9XgPr+fgsL8MDyS44yUS5f1ApfFNHwU40BTlCe/\n 8ECXqOUTFrQaNwFQrnKeJROxqzh9zVzZcmt9ipFYV/NbLK8FpQ/cXrNdrsqo+xHumiqtUWtXv0O\n uLIJGn44LYJYi2vu1AtaURdYWsMqTSfAkCGLf2/vT0MaJuQ5vTR51TpYoHaTz6hqmAkOSPHw7zK\n FAJhVwin2Gpm8zfdmmCoZpOQ/uFF3qbQ3wtFmLQ4k9Z0gWd2agtt6n/D0mIOfku2WgtJZxVPMfC\n hTVdOKOCQ3UNsSLNbh5V6WEbqg6m2lYc6G23uM7paV3UjqF1vTkkgyrV0j",
        "X-Received": "by 2002:a17:903:286:b0:2b2:680c:2193 with SMTP id\n d9443c01a7336-2b5f9f64affmr269266985ad.31.1776913920542;\n Wed, 22 Apr 2026 20:12:00 -0700 (PDT)",
        "From": "Brian Sune <briansune@gmail.com>",
        "To": "u-boot@lists.denx.de, Tom Rini <trini@konsulko.com>,\n Chee Tien Fong <tien.fong.chee@altera.com>, Simon Glass <sjg@chromium.org>",
        "Cc": "Brian Sune <briansune@gmail.com>",
        "Subject": "[PATCH v6] Improve handoff prepare on SoCFPGA",
        "Date": "Thu, 23 Apr 2026 11:11:55 +0800",
        "Message-Id": "<20260423031155.14747-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": "Ensure qts folder header files are properly updated by isolating\nthe Python execution environment. This prevents partial or failed\nscript runs from corrupting the target directory.\n\nChangelog v4 -> v5:\n - Change HANDOFF_KEEP condition to if [ \"{HANDOFF_KEEP:-0}\" != \"0\" ]\n - Add HANDOFF_KEEP and HANDOFF_PATH comments in config.mk\n\nChanges:\n - Implement a temp folder for Python script execution.\n - Clean temp folder automatically despite execution failures.\n - Gate the file replacement process on the successful exit of\n   the Python scripts.\n - Execute the replacement (with or without keep) only upon script\n   success via the NEW HANDOFF_KEEP=xxx variable.\n - Rename old files to .h.handoff_backup.<timestamp> when the\n   keep option is selected.\n\nReviewed-by: Simon Glass <sjg@chromium.org>\n\nReviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>\nSigned-off-by: Brian Sune <briansune@gmail.com>\n---\n arch/arm/mach-socfpga/config.mk | 39 ++++++++++++++++++++++++++++++---\n 1 file changed, 36 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/arch/arm/mach-socfpga/config.mk b/arch/arm/mach-socfpga/config.mk\nindex 1ca1d33cb16..f341aaaea56 100644\n--- a/arch/arm/mach-socfpga/config.mk\n+++ b/arch/arm/mach-socfpga/config.mk\n@@ -1,6 +1,18 @@\n # SPDX-License-Identifier: GPL-2.0+\n #\n # Brian Sune <briansune@gmail.com>\n+#\n+# HANDOFF_PATH\n+# ------------\n+# Unset - Board path where qts locates and \"hps_isw_handoff\" should be placed.\n+# Set   - Custom path points to \"hps_isw_handoff\" folder.\n+#\n+# HANDOFF_KEEP\n+# ------------\n+# Unset\t- Clean header files.\n+# Set\t- HANDOFF_KEEP= , Clean header files.\n+#\t  HANDOFF_KEEP=0, Clean header files.\n+#\t  HANDOFF_KEEP=1, Backup header files and rename to \".h.handoff_backup.<timestamp>\".\n \n ifeq ($(CONFIG_ARCH_SOCFPGA_CYCLONE5),y)\n archprepare: socfpga_g5_handoff_prepare\n@@ -43,6 +55,27 @@ 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] 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\techo \"[DONE] SoCFPGA QTS handoff conversion complete.\"\n+\t\techo \"[INFO] Try BSP generator...\"; \\\n+\t\tTEMP_DIR=$$(mktemp -dp \"$$BOARD_DIR/\"); \\\n+\t\ttrap 'rm -rf \"$$TEMP_DIR\"' EXIT; \\\n+\t\tif python3 $(srctree)/tools/cv_bsp_generator/cv_bsp_generator.py -i \"$$HANDOFF_PATH\" -o \"$$TEMP_DIR\"; then \\\n+\t\t\tif [ \"$${HANDOFF_KEEP:-0}\" != \"0\" ]; then \\\n+\t\t\t\techo \"[INFO] Preserving old BSP files...\"; \\\n+\t\t\t\tTIMESTAMP=$$(date +%Y%m%d_%H%M%S); \\\n+\t\t\t\tfor f in \"$$BOARD_DIR\"/qts/*.h; do \\\n+\t\t\t\t\t[ -e \"$$f\" ] || continue; \\\n+\t\t\t\t\techo \"[INFO] $$f -> $${f%.h}.h.handoff_backup.$$TIMESTAMP\"; \\\n+\t\t\t\t\tmv \"$$f\" \"$${f%.h}.h.handoff_backup.$$TIMESTAMP\"; \\\n+\t\t\t\tdone; \\\n+\t\t\telse \\\n+\t\t\t\techo \"[INFO] Clean old BSP files...\"; \\\n+\t\t\t\tif ls \"$$BOARD_DIR/qts\"/*.h >/dev/null 2>&1; then \\\n+\t\t\t\t\trm \"$$BOARD_DIR/qts\"/*.h; \\\n+\t\t\t\t\techo \"[INFO] Removed old BSP files...\"; \\\n+\t\t\t\tfi; \\\n+\t\t\tfi; \\\n+\t\t\tmv \"$$TEMP_DIR\"/*.h \"$$BOARD_DIR\"/qts; \\\n+\t\t\techo \"[INFO] SoCFPGA QTS handoff conversion complete.\"; \\\n+\t\telse \\\n+\t\t\techo \"[WARN] BSP generator failed!\"; \\\n+\t\tfi;\n",
    "prefixes": [
        "v6"
    ]
}