get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218655,
    "url": "http://patchwork.ozlabs.org/api/patches/2218655/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260401153525.1541415-2-yan.wang@softathome.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": "<20260401153525.1541415-2-yan.wang@softathome.com>",
    "list_archive_url": null,
    "date": "2026-04-01T15:35:24",
    "name": "[2/3] binman: Generate the preload header and sign the data only once",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2c8a1c6c9991308318f77a4f88d3c17e682c5ac2",
    "submitter": {
        "id": 90652,
        "url": "http://patchwork.ozlabs.org/api/people/90652/?format=api",
        "name": "yan wang",
        "email": "yan.wang@softathome.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260401153525.1541415-2-yan.wang@softathome.com/mbox/",
    "series": [
        {
            "id": 498351,
            "url": "http://patchwork.ozlabs.org/api/series/498351/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498351",
            "date": "2026-04-01T15:35:23",
            "name": "[1/3] tools: binman: Test signing an encrypted FIT with a preload header",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498351/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218655/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218655/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=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com\n header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com\n header.b=jYi6EFe8;\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=none (p=none dis=none) header.from=softathome.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=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com\n header.b=\"jYi6EFe8\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=softathome.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=yan.wang@softathome.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 4fm8Fz6t54z1yHD\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 02:35:51 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 92CB484056;\n\tWed,  1 Apr 2026 17:35:46 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 8F92F8407E; Wed,  1 Apr 2026 17:35:45 +0200 (CEST)",
            "from PAUP264CU001.outbound.protection.outlook.com\n (mail-francecentralazlp170110002.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c20a::2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 9B1FF84011\n for <u-boot+nodisclaimer@lists.denx.de>;\n Wed,  1 Apr 2026 17:35:43 +0200 (CEST)",
            "from PA7P264CA0452.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:398::23)\n by PA3PPF6E5BD8CCF.FRAP264.PROD.OUTLOOK.COM (2603:10a6:108:1::658)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.15; Wed, 1 Apr\n 2026 15:35:37 +0000",
            "from PA2PEPF00019231.FRAP264.PROD.OUTLOOK.COM\n (2603:10a6:102:398:cafe::ae) by PA7P264CA0452.outlook.office365.com\n (2603:10a6:102:398::23) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9745.30 via Frontend Transport; Wed,\n 1 Apr 2026 15:35:38 +0000",
            "from proxy.softathome.com (149.6.166.170) by\n PA2PEPF00019231.mail.protection.outlook.com (10.167.242.37) with Microsoft\n SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.17\n via Frontend Transport; Wed, 1 Apr 2026 15:35:37 +0000",
            "from sah1lpt719.softathome.com (unknown [192.168.72.213])\n by proxy.softathome.com (Postfix) with ESMTPSA id E3D7D20014;\n Wed,  1 Apr 2026 17:35:36 +0200 (CEST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,\n SUSPICIOUS_RECIPS autolearn=no autolearn_force=no version=3.4.2",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=n0/KwJ9BolzFSpYcky6MO/Hu1scHG4KX5B+Kkb/5cBushO4eCR3wqg5QdD/sIzwZIY/O8Fj363Qz3ypvphstjM8j9Hg708Hn4K/J9Y4RrtgIkQI6k0ySt8wIlks1JPHZ3lOsbJwIairFCYetnPdJZrKPyu3x+FN+uYGI5FpWVHki8Wi216sQNZsfvHyA1oYQkkdXORNA4DlN5EjiH+ibVC1hk7uWMZ9eHit3EpM0tLjcjUMcGd1PqNzaZqwgDx0oh5Bo0+g2KdALSsmg7WtWJKUlEV6lMy8GBVxCrndHy7jdeCofcHSuU1ZAcziwSdS/yuNVFkVo+wv1IAPbOO67wA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=OsLSCvxOD6lj0XrJjZe2bump/Wsq2uDf8LJvcAK61hk=;\n b=ZK8szWc7FMnmWvioTOMNMBuER6vVraP5hZJuG2of1Nk5T2PKw6Eu0gpnQIZs5lb+BlSLs14y9pbCnBpIqj1SH+8SyVefY/uSPZxubUqNL6KaTNNdVkF8OWWPeBwusG7+mYzNTzz+ffsPwMXkM56qwRVPRxZlXvqwQSLera63y0BLzerlToFZ6qeUV97PaMJ21xL0/ABp6fpvFJZQzGxi96TEWYxVHt7FywY3I7wmYFqGB8qDFEF2MSJSB/yFPus8Z3QpmNgHFXyuOyKmRbr0HJek9kf0S33LAQ6mTC0ho8eqFvU32/l0YVVe5RMV6cNVHfmO0klJXwJNGZ5+VJbSVw==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 149.6.166.170) smtp.rcpttodomain=chromium.org smtp.mailfrom=softathome.com;\n dmarc=bestguesspass action=none header.from=softathome.com; dkim=none\n (message not signed); arc=none (0)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=OsLSCvxOD6lj0XrJjZe2bump/Wsq2uDf8LJvcAK61hk=;\n b=jYi6EFe8KIFUR1REOgQr8sEK4HQwdJIA96cszXw7sWihd3bfzkxy9WVZRUwURgc3KMSB8iM0lc9IN+amZm6FjKWd3ujv3Ipnpz79jTkYHJ+m05wWcUigpCGAILpul+FY0w9L9sqsL44UWjSjXO5hHL2ESVIlsNoY+SNkod4LnQc/Tl8cx173By3/TuY+0X2Z9Q0QTRShdUs90SN6WjtukHljNXr27Jml/ttJSic7YL3oiWzUIF/1j7YyERCVNe20+WTaDS16jtQPG99BN0/yR8SsGJSOjPONaeRBB9sdwaLjgBQdGcZKU1C6PXk5Kt+L3OPQ5PxENE7vZ8uiAp09Qg==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 149.6.166.170)\n smtp.mailfrom=softathome.com; dkim=none (message not signed)\n header.d=none;dmarc=bestguesspass action=none header.from=softathome.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of softathome.com\n designates 149.6.166.170 as permitted sender)\n receiver=protection.outlook.com; client-ip=149.6.166.170;\n helo=proxy.softathome.com; pr=C",
        "From": "yan wang <yan.wang@softathome.com>",
        "To": "trini+nodisclaimer@konsulko.com, sjg+nodisclaimer@chromium.org,\n alpernebiyasak+nodisclaimer@gmail.com",
        "Cc": "philippe.reynes+nodisclaimer@softathome.com,\n paul.henrys_ext+nodisclaimer@softathome.com,\n yan.wang+nodisclaimer@softathome.com, u-boot+nodisclaimer@lists.denx.de,\n Paul HENRYS <paul.henrys_ext@softathome.com>",
        "Subject": "[PATCH 2/3] binman: Generate the preload header and sign the data\n only once",
        "Date": "Wed,  1 Apr 2026 17:35:24 +0200",
        "Message-Id": "<20260401153525.1541415-2-yan.wang@softathome.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20260401153525.1541415-1-yan.wang@softathome.com>",
        "References": "<20260401153525.1541415-1-yan.wang@softathome.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "PA2PEPF00019231:EE_|PA3PPF6E5BD8CCF:EE_",
        "Content-Type": "text/plain",
        "X-MS-Office365-Filtering-Correlation-Id": "e0532248-b141-4c78-b029-08de90045274",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|1800799024|82310400026|36860700016|376014|18002099003|22082099003|56012099003;",
        "X-Microsoft-Antispam-Message-Info": "\n huaWCZCwtmUQ/UATCxI7Rys7FJXqovNDudG+6MRj/AzybuNjdn0fYqHRT+r+UoDaJmu2b6XxZdYLxAjN4ZnkjFOhejQ0r39ZcyVnXGsrt3wKsTKU5xWnefKNuchj73m59RCKb3zk7lwG5rTjXJDVSxN6jwNhetfxRcf9m2Kb3BNs6lECSUReoMghuoXKY3fT7q76/aJfUCZp9lxzVSWFbTkFU0hgOY7PpEwOVJowgedSouvEa2GQ99jNsT72YDP9s+REuGfJM5m+iV2w0M+pqWE4FO+iKFXuTfxTA+23TCJmJAZWY5I4P9aKJK5EhXW7/zn8UuGzL0UfHE0TnIRQjgL3LWrzM6+IeANFF33hwMg2a7mHVvg5PZX0wtpPU1yLpa/py/htCS0aeC+jxO3cW+0DwhndnbWL3a4fLWUq+tNZ4lXuxGf46biS270jEFh0jU6OG6oDNXZPgsZNAVT3OB85qszk5JLcyn19Dks6ZqRXw5DRsAr2FgPgLHcqyLLPXefd8YUoEzCB/7mksMi78ylKYJceTnKj8mYCyFHknkZon6XVHEJOlGfHACb+LuUKNIcjmRN5Eauc/8kPQN718D7jtoQrUv6+UTsIEJHdDE88MURhUd+zSGcoN+/rqUNXMGibCqWWvEzv/CTd4F9AKU9iK/oFoAVn6FyJDyUZXToy3CF+DQuQ1TxJ9nudwsnZiiRWeNr3QQFVuhtJAV916VhRuPv9JRcAG4ePsDmJiUrZaQSmfal2hhTSeG3oxjRdgY+NervylMJ4zpuwMebnsQ==",
        "X-Forefront-Antispam-Report": "CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent;\n CAT:NONE;\n SFS:(13230040)(1800799024)(82310400026)(36860700016)(376014)(18002099003)(22082099003)(56012099003);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n 8zCld8UG4hLgcE15cOaDS0bOuVKyRZNqtsb6piX1g+D6G3SljBZZunRLCbP2FocYJk0KXuLRQy8355uyBUdXwEWo719NExhws2T9Up8hS1vZR4t6aKY6lQ8zIMa0bqNgwX2T0CQxyESXvIdhHb1A5S7p9hathnYyyR09IkMMFNZcD64qk5OrZSTFh1PriQdErqnQ3DxUcARSKK327JzvSz+PaSxRUAC833b4tmX/D5qrZNup3SlVceFEmTAnAV79sjo0GZUKV55/a3kBQFdwKlZ2mzpecIOZPoNavKe2/0/ncBw21ZL1MT8izvQjzZFlM07Qkwz4ujnZP8aZuCs5LJg9cI4idYJ6PvrEfDLy+AfLobllJAcKOWjLHmJ7NAJH5i3vOG6mpuJRPkOoxJGIekIUhmF88qVdRaJ8qTnJfONJ6j9LaVWxOMbBZd+lfZ45",
        "X-OriginatorOrg": "softathome.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "01 Apr 2026 15:35:37.0374 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n e0532248-b141-4c78-b029-08de90045274",
        "X-MS-Exchange-CrossTenant-Id": "aa10e044-e405-4c10-8353-36b4d0cce511",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170];\n Helo=[proxy.softathome.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "PA2PEPF00019231.FRAP264.PROD.OUTLOOK.COM",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "PA3PPF6E5BD8CCF",
        "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": "From: Paul HENRYS <paul.henrys_ext@softathome.com>\n\nTo optimize the preload generation, the header and signatures are\nonly generated once all data have been collected. This avoids to\nsign multiple times.\n\nSigned-off-by: Paul HENRYS <paul.henrys_ext@softathome.com>\n---\n tools/binman/etype/pre_load.py | 10 ++++------\n 1 file changed, 4 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/tools/binman/etype/pre_load.py b/tools/binman/etype/pre_load.py\nindex 00f1a896767..b950a540861 100644\n--- a/tools/binman/etype/pre_load.py\n+++ b/tools/binman/etype/pre_load.py\n@@ -152,14 +152,12 @@ class Entry_pre_load(Entry_collection):\n         return data + pad\n \n     def ObtainContents(self):\n-        \"\"\"Obtain a placeholder for the header contents\"\"\"\n-        # wait that the image is available\n-        self.image = self.GetContents(False)\n-        if self.image is None:\n-            return False\n-        self.SetContents(self._CreateHeader())\n+        \"\"\"Do nothing here.\n+        The data will be obtained and handled in ProcessContents\n+        \"\"\"\n         return True\n \n     def ProcessContents(self):\n+        self.image = self.GetContents(True)\n         data = self._CreateHeader()\n         return self.ProcessContentsUpdate(data)\n",
    "prefixes": [
        "2/3"
    ]
}