get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224991,
    "url": "http://patchwork.ozlabs.org/api/patches/2224991/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260420074601.24988-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": "<20260420074601.24988-1-briansune@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-20T07:46:01",
    "name": "[v3] Improve handosff prepare on SoCFPGA",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "ca9996dc76557198bf1749629badfd5efc042ac8",
    "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/20260420074601.24988-1-briansune@gmail.com/mbox/",
    "series": [
        {
            "id": 500561,
            "url": "http://patchwork.ozlabs.org/api/series/500561/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500561",
            "date": "2026-04-20T07:46:01",
            "name": "[v3] Improve handosff prepare on SoCFPGA",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/500561/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224991/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224991/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=OpDDA9zV;\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=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=\"OpDDA9zV\";\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 [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fzcxM646Sz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 17:46:15 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id B2825839D5;\n\tMon, 20 Apr 2026 09:46:12 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 0856E8421A; Mon, 20 Apr 2026 09:46:11 +0200 (CEST)",
            "from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com\n [IPv6:2607:f8b0:4864:20::1036])\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 C25ED83693\n for <u-boot@lists.denx.de>; Mon, 20 Apr 2026 09:46:08 +0200 (CEST)",
            "by mail-pj1-x1036.google.com with SMTP id\n 98e67ed59e1d1-35da01fc0baso1695708a91.2\n for <u-boot@lists.denx.de>; Mon, 20 Apr 2026 00:46:08 -0700 (PDT)",
            "from intel-VirtualBox.. ([94.156.205.70])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b5fab3ad18sm98181915ad.71.2026.04.20.00.46.05\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 20 Apr 2026 00:46:06 -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=1776671167; x=1777275967; 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=9oeVa8yb4gtrI6Arwx3u19JseEWOs2C3s605xqHzKUQ=;\n b=OpDDA9zVekjprEjiq7JTXBLDj5QbjVkciXU/SNoy3U5JB1mIy70RLCR83/Tam4VV7C\n PF+yzzyavi0Aj294e94fhU+kdSKpaKPD/IaGArZdWm7SLcoRd/ZFEpDmiFfXNT2PQ9Ni\n a09/ecBaK6X56C+d4/A2sKoJKJWn7oI+lpRCioaBDyb734iX2wMP+1oY+3aCgrfUM6NY\n FXYmpZy0DuykF6lsmGLAdW9B/4Lsge5dV4lb+73g8JJpqaSDLpTsvLQE8Vezi6n12J9A\n d6V8OrW92y/yavEd981iQEcnRQ13fUc35Dxh/1ThqVLoE07NEnMaNWnOMBxR6GCH11/W\n hb6g==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776671167; x=1777275967;\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=9oeVa8yb4gtrI6Arwx3u19JseEWOs2C3s605xqHzKUQ=;\n b=L1ne7vdiScgJfFtT6IQJovlXMCIe6ins2xX+SaHL4hCWWHCSSPKJ4+5dZP17EAFGyE\n afQq6SMTmkT6f0CaHUUqaMPS0tCX9eV8r7rUOhDsvxU+hRLnj1o1iJ7kNnK1yxJpf8xg\n wI1gMhQO1MDGWhL3U+0QgeqzOuqXfY8XktUqHxFaRSe7xM7kbhZnqf4/+Bl5TFJKU5lP\n DScHkAMdpiVG7WauVwdiaRObbgWalyRsk+0sFlLxVRXThzQvRn4N/RnI6u5/alJt+v30\n iua9bgSOh5eiRNalPFygpZRQfWVpHbUfpTXuE9ElAOLOgQtBLWAnsVq9oXiwohslWcTa\n CiFQ==",
        "X-Gm-Message-State": "AOJu0YzH495O2Zz7aKvFS5iUg7V+S/qIJBZQKk+RhoEnh5/2BYMX7ghN\n ZuUb9IoaL+otZo42xNqaJ3mhA8DNZcTdl5J8D+67DuJ0OvmaeG17Oe04J4z8Xo/4",
        "X-Gm-Gg": "AeBDievyapkAjk06VM3MfuktqMhAZK2lHoa3HgiIwT0KD5rWDMLo0lYQ89CePln+1u3\n OBj2mYJHfRsVdEm447cy6Lri5pMu9ZbXbYuHvI50FoskNRtZGX7dBjDRGKixl6c34gRClgH1OhU\n Dt+uYEMpiB46ZZYwQGSi/l+6DumaKo/f4wjPcoTNdleDzks2+dxEzHoy1TJd/zRdJmycVlfoD8G\n BTkTH1T6fZcTKLScoZyk9O0sf56i4aaXkFg/UUVWfVA4GcH6F1T+I/o56Df1wALurCD9Oo1APaF\n UmEkzmlx+9JVp2+fsPixZcZSRZxbdqjWw57ZuUhiMDjXHGWb/EVzplIeTpuoyzb2b27doanIvUG\n Q7bKX8rgJarGlAcGOMSc2c6ct6H0/GQTdVvGmt/8d3AJ6BlWQl7208AZ6vjeOd8x6yir/lxpS9y\n LLzhaT55W3PH8ghTE0xMrK3tU13OCCR0DqY3wLQckOTIDoZscix07K5dg=",
        "X-Received": "by 2002:a17:90b:5203:b0:35f:b9ea:8f9f with SMTP id\n 98e67ed59e1d1-36140464842mr11461546a91.16.1776671166803;\n Mon, 20 Apr 2026 00:46:06 -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 v3] Improve handosff prepare on SoCFPGA",
        "Date": "Mon, 20 Apr 2026 15:46:01 +0800",
        "Message-Id": "<20260420074601.24988-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 | 29 ++++++++++++++++++++++++++---\n 1 file changed, 26 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/arch/arm/mach-socfpga/config.mk b/arch/arm/mach-socfpga/config.mk\nindex 1ca1d33cb16..5a75b773474 100644\n--- a/arch/arm/mach-socfpga/config.mk\n+++ b/arch/arm/mach-socfpga/config.mk\n@@ -8,6 +8,8 @@ else ifeq ($(CONFIG_ARCH_SOCFPGA_ARRIA5),y)\n archprepare: socfpga_g5_handoff_prepare\n endif\n \n+HANDOFF_KEEP ?= 0\n+\n socfpga_g5_handoff_prepare:\n \t@SOCFAMILY=\"$(SOCFAMILY)\"; \\\n \t\tif [ -z \"$$SOCFAMILY\" ]; then \\\n@@ -43,6 +45,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\tif python3 $(srctree)/tools/cv_bsp_generator/cv_bsp_generator.py -i \"$$HANDOFF_PATH\" -o \"$$TEMP_DIR\"; then \\\n+\t\t\tif [ -n \"$$HANDOFF_KEEP\" ]; 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+\t\ttrap 'rm -rf \"$$TEMP_DIR\"' EXIT;\n",
    "prefixes": [
        "v3"
    ]
}