Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2225402/?format=api
{ "id": 2225402, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2225402/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260421004719.73491-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": "<20260421004719.73491-1-briansune@gmail.com>", "date": "2026-04-21T00:47:19", "name": "[v4] Improve handoff prepare on SoCFPGA", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "e6cdc32d19d5a7f583362095a6a14494c59ce357", "submitter": { "id": 91590, "url": "http://patchwork.ozlabs.org/api/1.1/people/91590/?format=api", "name": "Sune Brian", "email": "briansune@gmail.com" }, "delegate": { "id": 152680, "url": "http://patchwork.ozlabs.org/api/1.1/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/20260421004719.73491-1-briansune@gmail.com/mbox/", "series": [ { "id": 500698, "url": "http://patchwork.ozlabs.org/api/1.1/series/500698/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500698", "date": "2026-04-21T00:47:19", "name": "[v4] Improve handoff prepare on SoCFPGA", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/500698/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2225402/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2225402/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=EwA6+vzC;\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=\"EwA6+vzC\";\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 4g03bv47zLz1yHB\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 10:47:39 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 225EF8422D;\n\tTue, 21 Apr 2026 02:47:36 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 6D17E842B7; Tue, 21 Apr 2026 02:47:34 +0200 (CEST)", "from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com\n [IPv6:2607:f8b0:4864:20::1029])\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 0D44B84198\n for <u-boot@lists.denx.de>; Tue, 21 Apr 2026 02:47:32 +0200 (CEST)", "by mail-pj1-x1029.google.com with SMTP id\n 98e67ed59e1d1-35fb16e56efso2418578a91.2\n for <u-boot@lists.denx.de>; Mon, 20 Apr 2026 17:47:31 -0700 (PDT)", "from intel-VirtualBox.. ([94.156.205.70])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b5fa9ff90dsm114476645ad.11.2026.04.20.17.47.28\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 20 Apr 2026 17:47:29 -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=1776732450; x=1777337250; 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=IVAhflZNfTrCcHJx/JBXGaE3foVPdgIpiYl4Pnn/9zI=;\n b=EwA6+vzCTXJSF2qEemO9RN49Yf6hSD3s7qKGxn+cmBzYPsAO+EGusOMWfCZ2rjNqrX\n hzNxhYLNKlIYGoBcg/j/Q1ucv9HHXNi+/Lyzacn/HTOyQkvnOw3Rh+dz4uT071i2E5KX\n N0h6BvM2BByEKpKNhqAuuGXH/Ybw0lazpNV/6QplxKC7QqQtq7p856hITRRkEIZOZJt3\n c9M0ZhrDYPlo1Zy9XefX+ToKupseLAbhziZFXByJzvg0tKGaYZ2IY8de71AvG6XVmbif\n eAFqRc4er0Ee3TQVTKQJ+XvUGnsl4qYeabaiQ+ksI89emAc5TNmY8D9eEsCL7DXXNzIn\n fwYA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776732450; x=1777337250;\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=IVAhflZNfTrCcHJx/JBXGaE3foVPdgIpiYl4Pnn/9zI=;\n b=CGNcNz494+r38UqJY/pmxXk8u+gRBSl0jGy7PgXyz1yEU8EdGHLUyU/IrFpdfOOBKO\n u0wyd0NMNmsnc2miPgwMhfER4e+5xX/3fsGU9he95UFz6YDbuej8Pd28hndrLgKp1YVY\n SRTG3aZ1y92ZBWjQOKqv6laS7zXB4aYmOCu24aqQNWpPhOzoxJWtlQgovUGTGTFlvFpb\n FVOmBnlZO3SNYDYKEmx17hf73QA6/FAMlxwp2E37EAS63uem0ZxIoHOHtGLVYbrQtqUt\n 977Wal2cg9xBe+omYpI8nmlyxseOaq/qxzEEP2czW8BlvrW3fLniWT71QwsmV7erlYEe\n NDkg==", "X-Gm-Message-State": "AOJu0YxKLv6ilcrDTKHgiqG6H188cm7DCH9VZXwgi12kNPlirClbbOrP\n dtiIxopeULLhrPXJCa0JxaQfsebMduMbcie53ewDASSxsZTt44qyjf//XI3uFpJB", "X-Gm-Gg": "AeBDievPFi3XWMZJpYBjcWc8TEmUN4xW0exMymxqem6vl7kB2+2yayhxMSz4U5M+JNv\n iTlP2YWeG4uX6T2BMnmA1tpcBNq8wUtsh9L1C6FsB1kcSTwcS3y4yOjKs3K+d14iasB4pV/g5Fg\n LK4knyaFpHtswp+8QOPl/yDC/diUcFb4NzP0fbqB0G12IYcsh9qcChDwFGyL88PhiMWvG+U7N7U\n 5TzZrKPbB11pd//Ob6b5NKiFy85x9t1wYP2IpUWqwLbl/WgmpZjkRVHykousRsukBzEtb46hvOZ\n CukH5anRJrkzOH/UKwCvJMOPXwVde+vfqhwiI72dd3Xg1oaEJfHTz3lVC76x2z7aV9iBLF8sELs\n PV46vJk4F0sUjr+50G8vXXWQoT+rsp2iD6KZypqU/gAX0uZ7F7PDXz/G4JsnMBHz72KjIswRTBo\n QlttcdVgPn0uhLGpPtd8OEsQ0Z4IqJn76iYAiQAEEJtQr1keUbMMFhaQY=", "X-Received": "by 2002:a17:90b:5107:b0:35f:b870:9c9f with SMTP id\n 98e67ed59e1d1-361403f09e9mr15508052a91.12.1776732450250;\n Mon, 20 Apr 2026 17:47:30 -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>", "Cc": "Simon Glass <sjg@chromium.org>,\n\tBrian Sune <briansune@gmail.com>", "Subject": "[PATCH v4] Improve handoff prepare on SoCFPGA", "Date": "Tue, 21 Apr 2026 08:47:19 +0800", "Message-Id": "<20260421004719.73491-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.\n\nThis patch introduces:\n1) TMP folder for Python script\n2) TMP folder will automatically remove on exit\n3) If PY script fails, the replace will not conduct.\n4) Only when PY script passed the replace with keep\nor without keep will be done via NEW HANDOFF_KEEP=xxx\n5) When keep is selected the old files are renamed to\nxxx.h.handoff.<timestamp>\n\nAs such this ensure qts folder h files are properly\nupdated.\n\nSigned-off-by: Brian Sune <briansune@gmail.com>\n---\n arch/arm/mach-socfpga/config.mk | 27 ++++++++++++++++++++++++---\n 1 file changed, 24 insertions(+), 3 deletions(-)", "diff": "diff --git a/arch/arm/mach-socfpga/config.mk b/arch/arm/mach-socfpga/config.mk\nindex 1ca1d33cb16..010ea633f12 100644\n--- a/arch/arm/mach-socfpga/config.mk\n+++ b/arch/arm/mach-socfpga/config.mk\n@@ -43,6 +43,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 [ -n \"$${HANDOFF_KEEP+x}\" ] && [ \"$${HANDOFF_KEEP:-1}\" != \"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": [ "v4" ] }