get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2222431,
    "url": "http://patchwork.ozlabs.org/api/patches/2222431/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260411172730.218700-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": "<20260411172730.218700-1-briansune@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-11T17:27:30",
    "name": "[v1] Improve handosff prepare on SoCFPGA",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "917b8a040b6edb8299168e528f8782eef2e833eb",
    "submitter": {
        "id": 91590,
        "url": "http://patchwork.ozlabs.org/api/people/91590/?format=api",
        "name": "Sune Brian",
        "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/20260411172730.218700-1-briansune@gmail.com/mbox/",
    "series": [
        {
            "id": 499568,
            "url": "http://patchwork.ozlabs.org/api/series/499568/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499568",
            "date": "2026-04-11T17:27:30",
            "name": "[v1] Improve handosff prepare on SoCFPGA",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499568/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2222431/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222431/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=qPiq9xZM;\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=\"qPiq9xZM\";\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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4ftLGg2GDhz1yGb\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 12 Apr 2026 03:27:55 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id A704B84118;\n\tSat, 11 Apr 2026 19:27:52 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id D9F0184118; Sat, 11 Apr 2026 19:27:51 +0200 (CEST)",
            "from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com\n [IPv6:2607:f8b0:4864:20::1031])\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 ADB0A83DC9\n for <u-boot@lists.denx.de>; Sat, 11 Apr 2026 19:27:49 +0200 (CEST)",
            "by mail-pj1-x1031.google.com with SMTP id\n 98e67ed59e1d1-3591cc98871so1546423a91.3\n for <u-boot@lists.denx.de>; Sat, 11 Apr 2026 10:27:49 -0700 (PDT)",
            "from intel-VirtualBox.. ([94.156.205.200])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-35e411ff4c3sm7155785a91.2.2026.04.11.10.27.46\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 11 Apr 2026 10:27:47 -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=1775928468; x=1776533268; 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=KaJ6lsXbGYi/BLZcb0iwsVUy8cGezcCZZrYfpwxoyx4=;\n b=qPiq9xZMH7b5AepUBf54o0+i6uF7dccZ10xmR34Qg0xw3hEk2yhUSI02kl/od0FoHc\n UQAkBy9H51Ztz3PD/A/YNwpYBDv2k3RSXh+Psuck4gkKEJ3164+E1+jYRJ8nCNazmicD\n 6j37CJ1l4nAVf+syGwFUlGa23g6YXmAwMwp32nBI1GbzeoF6fd1vTnW1Y9z/V0h/4V/u\n KlCgZCqrabvLYCtcNgcH0BWmPOC5yR2LtZY/sYRE1uGBczWuamiq+ttgouswQ2ROYDHc\n Rtta7UcTLE4dRiJDpJkUlyvkNCYLNO75GYwR1Lstt8A+dUvuVylFccPkwlh5qyjqfOhc\n og7g==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775928468; x=1776533268;\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=KaJ6lsXbGYi/BLZcb0iwsVUy8cGezcCZZrYfpwxoyx4=;\n b=CeDOCAvA9X+WYXDCHcd9THFTDs1oXMvRqVLW/Ud9yAM71BvvLjslr7pdHz9Q0bwr7/\n VJKes8/5Z4jTSWC9FHSU5cF9HCJtDJVq2WGImucKKgyDUnlJxiCTTWxanDyLSfAgHtSE\n VV1CVADclpuPGn7rpmukt2hTPCopShtpBl57zhKbSHvHVgtx5Wrsox6FX/uZAQsfB9hw\n AZTbn+D0Wdnn2L130NDzjaUOCMSMabGmonRZKQKj3OWemrG7BXmu91CAPKNwgtAFyXwu\n wlD2c5ihlm5/mAmyJnxlFJDmWBO9BpZdjZaPldUQMuHNahv6bIHl9h+XddAud7jCd9Vv\n /3gw==",
        "X-Gm-Message-State": "AOJu0YyvbXJPATyBCAhBPFCN9AgEybmn122RCcbLDgc4uABkul/VZUd3\n NIiddBOjV7IWpF+truq6XS+xdkdG8aFlJLNZ1ZgU/fkdhBMT3ghcNxa6CvCpPg==",
        "X-Gm-Gg": "AeBDievY00+PTo7ISoeu1fq0LfqqOxQwqz2HPRzzDvFy+PehXSKqizGzXZUDFVYbsVa\n JcWdrrEv9Jnxex2z9kqTBjWeHp1IWBmriSoO+sb6csVieE5SElUvurS7YYngpc99LaKXpFElId5\n 4KPiLnrVMLjsCeoBhk2Wu18it175EykMvfshVItptmwafTTKEn6TD94JH1yHjlieNxD49E1Lrq1\n LgB1+ttLyXVIMswEPLyzCJdUKXkxSyWcnVUCszrdyKzlBio1DZHQqskVVLPiK5L6mDLICzxufuh\n pmeIDFyp9LCbB9A9nwUGwLGFLEzDM5smCznNMyU+h6Uhfx2Pj1it2o0wTIAsQcrSBsLGiWBmgOi\n 7fLVwd+7wu0U4R1i4BNyYIxbE5PADft0ITEFxqZV+cQ8TWqgNd8IQoHlPfXmtyoYL+1JiPMdVpN\n WC0TTPfG8FFD+eMq2wtPkmq3t+2zTyAHZQvEaGCj3TIg10sQ==",
        "X-Received": "by 2002:a17:90b:1d8a:b0:35e:30bc:96ed with SMTP id\n 98e67ed59e1d1-35e42781abdmr7871163a91.10.1775928467834;\n Sat, 11 Apr 2026 10:27:47 -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 v1] Improve handosff prepare on SoCFPGA",
        "Date": "Sun, 12 Apr 2026 01:27:30 +0800",
        "Message-Id": "<20260411172730.218700-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 | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/arch/arm/mach-socfpga/config.mk b/arch/arm/mach-socfpga/config.mk\nindex 1ca1d33cb16..d9d9d4f2373 100644\n--- a/arch/arm/mach-socfpga/config.mk\n+++ b/arch/arm/mach-socfpga/config.mk\n@@ -43,6 +43,11 @@ 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 -r \"$$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\techo \"[DONE] SoCFPGA QTS handoff conversion complete.\"\n",
    "prefixes": [
        "v1"
    ]
}