get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219216,
    "url": "http://patchwork.ozlabs.org/api/patches/2219216/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/5067efed56def5f41442d7b83b84c2963c9b263f.1775144215.git.michal.simek@amd.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": "<5067efed56def5f41442d7b83b84c2963c9b263f.1775144215.git.michal.simek@amd.com>",
    "list_archive_url": null,
    "date": "2026-04-02T15:36:59",
    "name": "[v4,2/3] event: Introduce EVT_POST_PREBOOT event",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f887d98142a1a6c959db671ae79e77bb5494bfa4",
    "submitter": {
        "id": 84271,
        "url": "http://patchwork.ozlabs.org/api/people/84271/?format=api",
        "name": "Michal Simek",
        "email": "michal.simek@amd.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/5067efed56def5f41442d7b83b84c2963c9b263f.1775144215.git.michal.simek@amd.com/mbox/",
    "series": [
        {
            "id": 498503,
            "url": "http://patchwork.ozlabs.org/api/series/498503/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498503",
            "date": "2026-04-02T15:36:57",
            "name": "fwu: Call EFI stack initialization after preboot",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/498503/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219216/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219216/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 (1024-bit key;\n unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256\n header.s=selector1 header.b=odxGeovp;\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=quarantine dis=none) header.from=amd.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=amd.com header.i=@amd.com header.b=\"odxGeovp\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=amd.com",
            "phobos.denx.de;\n spf=fail smtp.mailfrom=michal.simek@amd.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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmmFr2NnRz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 02:37:52 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 31227840AA;\n\tThu,  2 Apr 2026 17:37:40 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 07725839DF; Thu,  2 Apr 2026 17:37:39 +0200 (CEST)",
            "from BN8PR05CU002.outbound.protection.outlook.com\n (mail-eastus2azlp170110003.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c110::3])\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 AF37E840AA\n for <u-boot@lists.denx.de>; Thu,  2 Apr 2026 17:37:36 +0200 (CEST)",
            "from SJ0PR03CA0054.namprd03.prod.outlook.com (2603:10b6:a03:33e::29)\n by SN7PR12MB6813.namprd12.prod.outlook.com (2603:10b6:806:267::20)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.15; Thu, 2 Apr\n 2026 15:37:32 +0000",
            "from MWH0EPF000A6735.namprd04.prod.outlook.com\n (2603:10b6:a03:33e:cafe::e9) by SJ0PR03CA0054.outlook.office365.com\n (2603:10b6:a03:33e::29) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.20 via Frontend Transport; Thu,\n 2 Apr 2026 15:37:32 +0000",
            "from satlexmb08.amd.com (165.204.84.17) by\n MWH0EPF000A6735.mail.protection.outlook.com (10.167.249.27) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9769.17 via Frontend Transport; Thu, 2 Apr 2026 15:37:31 +0000",
            "from SATLEXMB04.amd.com (10.181.40.145) by satlexmb08.amd.com\n (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.17; Thu, 2 Apr\n 2026 10:37:31 -0500",
            "from satlexmb07.amd.com (10.181.42.216) by SATLEXMB04.amd.com\n (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 2 Apr\n 2026 10:37:29 -0500",
            "from localhost (10.180.168.240) by satlexmb07.amd.com\n (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17 via Frontend\n Transport; Thu, 2 Apr 2026 10:37:29 -0500"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=gABEi9oZ1ni3w4Ck3pDStqzOck0y/F+WaBwZNX9rv5xNOg/UJwUpO669MAhvvWfx/T7YhOGXPbCDWC2JEP4eXzW9gK5RSDQZpSu4Pj5Gaq6VAPj3vmm8t3UoNyQPXLL+PijgHQuzc2IPC7UiUStLHZuJRm+qMBYR+ZeOaXHwLESMCN0FsVqYuET3NGH6UYHL48BZH5dVOZ+KpwASKlDyVsICuHX/cNqEblUexXlQLpzY3q7UtOn2ZZvwr/zVj6LVW42/qPt2eKnG5bgG8SBZlJv44Twmq5Xq34wwWnXBP90CxmF71O+PEHKh/odVfKPU5G5dOFtkfkpmj9HQKhVtWg==",
        "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=xdQ19dtulDI8idvBo/VLAy597uFOUPEK7BwmNBIJIuY=;\n b=zJG/lXkSwy/39jT6mhfnSR0hYPU8+i3Xmo37UcbGAMosCgP0UHcrbNypFfBGlYICV/PyZne87h7ZmxW0GTS+bw7bu8uKDhjI736SFW2DULePEy5+10RBmjCICwnKg4aSy2wTBt4lTR9qeu13NCCjfssHqlFzryMQKTQZBevOEhRmxEBVVpBPZK+MmXlPjIYXkuMD6GRSSRMVabWKaVenIOEncAaLL7ZugGhLeljDlg8AN8rDZMbguuW80wgi1DqzWEHgDO13FpSnhVKPx/of2MRAxOYm33ppTx4mnGTEHBND3tfhIjy0f3Yp6CCkNnMA6hV7Mrub46dktYmjpRRSJQ==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com;\n dmarc=pass (p=quarantine sp=quarantine pct=100) action=none\n header.from=amd.com; dkim=none (message not signed); arc=none (0)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=xdQ19dtulDI8idvBo/VLAy597uFOUPEK7BwmNBIJIuY=;\n b=odxGeovpu6Csw34S/DQNq41KzFb6zLbh2EM9x9AQhJlnGz86qAx00oqSTNXvmgTrIB43KxTqayzlk5DBjmtVy2Dg5HqEye5AuFlweFoL1VawIVGQUK0CoNNIJSOaVTTp/ExDLruO3OxTPFDfH3h+t08g+ZIzqgbhPXAdowr6/LM=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 165.204.84.17)\n smtp.mailfrom=amd.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=amd.com;",
        "Received-SPF": [
            "Pass (protection.outlook.com: domain of amd.com designates\n 165.204.84.17 as permitted sender) receiver=protection.outlook.com;\n client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C",
            "None (SATLEXMB04.amd.com: michal.simek@amd.com does not\n designate permitted sender hosts)"
        ],
        "From": "Michal Simek <michal.simek@amd.com>",
        "To": "<u-boot@lists.denx.de>, <git@amd.com>, <xypron.glpk@gmx.de>,\n <ilias.apalodimas@linaro.org>, <sjg@chromium.org>",
        "CC": "Casey Connolly <casey.connolly@linaro.org>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v4 2/3] event: Introduce EVT_POST_PREBOOT event",
        "Date": "Thu, 2 Apr 2026 17:36:59 +0200",
        "Message-ID": "\n <5067efed56def5f41442d7b83b84c2963c9b263f.1775144215.git.michal.simek@amd.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<cover.1775144215.git.michal.simek@amd.com>",
        "References": "<cover.1775144215.git.michal.simek@amd.com>",
        "MIME-Version": "1.0",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2061; i=michal.simek@amd.com;\n h=from:subject:message-id; bh=cP0kvn7zDZjOjFTAWnonq0X18fO5akwJOOe1oCcgC+g=;\n b=owGbwMvMwCG2mv3fB7+vgl8ZT6slMWSe69VKkuzdxuCxWTDWl0vr7pnNH4y8DAI5ToSLri6Jc\n pUSkxDpKGVhEONgkBVTZJnOpOOw5tu1pWLLI/Nh5rAygQxh4OIUgIksdmVk2H5x7psXKfPP/tXK\n mf22SfrwhKqyKC+f5V4zMqamvRb79ojhv/s7sYJlWm07bJY43lmqYbg1m9nt1NKKe3kylmk59Y6\n NjAA=",
        "X-Developer-Key": "i=michal.simek@amd.com; a=openpgp;\n fpr=67350C9BF5CCEE9B5364356A377C7F21FE3D1F91",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "MWH0EPF000A6735:EE_|SN7PR12MB6813:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "1e89084b-1931-486d-c9c5-08de90cdc151",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|376014|1800799024|82310400026|36860700016|18002099003|56012099003|22082099003;",
        "X-Microsoft-Antispam-Message-Info": "\n YrhUYBO7hDMZ0Ri5gA5DIVBqBXXRDwzBPOc58JpAmHKxfhYGMI3IlaQYPg+uXwna3y8YLwGnMNLHEe35tX8hcsnck3lSXkaR7FeD7FBuzbgEmDMhPKjFm4WWW+hWN40WWGUjD2+pVPP6jshW2xftXh+WqaflqZ/T3x0nncNwWwnWLAadKEvfdWmgNpYWPsEmPmjFJKM1ifHAfCkWxPbqwzVD1A+C7N0tGNjMrmATsZlGlgxuRLrFcpYs7lEgm17nePoqUq70mRH+EWVCnZ1RkzXwgnkEQuCCBFjg1THrRjUrVyccR4gaGlzxWnGPREW8mbNc5n8uERxvYlKNlb7Qcsw5u9v0Yk5z0lvqHQOQKSJk8tWaZowhda0CyUOr8hrVwwTT6l1CH86IKWPD58MHFRRLS71dApjvjQoEkIfj8HFQc7yj1JLwTw7BHeKNoDpMlDo2iMv7Dp+O5DvwrSmfYMmL7OFnGXvkaQtSFPhCrjPbeyNn8Mafc9flOiD39C1+zyVO15k/nCO44P9bpshrxDcc5PwRxonP6WLiZBdu8yj1XYWQtb+akQkszyJpjV6PwiiHHOrqjDM5Geb3zcNPgAyVoSlWYFSv/yaUQES/wdc4xGo0AA6Un1DdmRQ2TmEz8AhXGKkWbZ6IPl4mnogTPYEFDx6Ibb1DtBXCCjtV5rX6KcmD4bdTBLIG6YwcWK/ruCo9jv6U2NXdrivnFDgpRKMdnte+5vxgiVbrkVH1qylXjbPa2VY4Xvng5CxTtjH1qRZDz/1IMGb2bWFvEXTIWw==",
        "X-Forefront-Antispam-Report": "CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:satlexmb08.amd.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(376014)(1800799024)(82310400026)(36860700016)(18002099003)(56012099003)(22082099003);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n F3u58ov/0YDRq2dLt0KnmpvLtEqAieff9Ewk7NsthEZdpuL4sdXUNGbLmv1ZRYzP88IKgIRg9bzl5K+s6/4/tjeprz1xOc2O9Lv1bPoeiCaG8houq3hUOCOW4SZpbXwKp04NqeogH3NzecrohJnahrADiv/hUUbq5YchRt5baac0trVL+UQSxOXqGb5thbLqNfPGbw/gdGbHe7my/jK1osRBmj57uA5ttlHSHW9cJW5TYXaLaR3enI5o4v1kusqifaCdV61jWjAtNsj0UxoTGsmjl1y0w0Xg6jWw5nEIhDPKhoa/8WbsfD2xCnDqzOAa+aRd4s6ATv6qWzd05m4MsM31P9e7cl0PsiPuFsnYjnwVRSJcfmSN2sO1EilGi/Pn08IhLqTyJL+Sj/d6nYw95xqJvEas1Iim71LcVIYww0/bbdP0yL19NZ0weMYXDN1k",
        "X-OriginatorOrg": "amd.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "02 Apr 2026 15:37:31.8358 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 1e89084b-1931-486d-c9c5-08de90cdc151",
        "X-MS-Exchange-CrossTenant-Id": "3dd8961f-e488-4e60-8e11-a82d994e183d",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17];\n Helo=[satlexmb08.amd.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n MWH0EPF000A6735.namprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "SN7PR12MB6813",
        "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": "Add a new EVT_POST_PREBOOT event type which is fired in main_loop()\nafter the preboot command has been executed.\n\nSigned-off-by: Michal Simek <michal.simek@amd.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\nAcked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>\n\n---\n\n(no changes since v3)\n\nChanges in v3:\n- add missing type_name extension\n\nChanges in v2:\n- check return value\n\n common/event.c  | 3 +++\n common/main.c   | 4 ++++\n include/event.h | 9 +++++++++\n 3 files changed, 16 insertions(+)",
    "diff": "diff --git a/common/event.c b/common/event.c\nindex 8d7513eb10b6..398e713d2f82 100644\n--- a/common/event.c\n+++ b/common/event.c\n@@ -49,6 +49,9 @@ const char *const type_name[] = {\n \t/* main loop events */\n \t\"main_loop\",\n \n+\t/* post preboot events */\n+\t\"post_preboot\",\n+\n \t/* livetree has been built */\n \t\"of_live_init\",\n };\ndiff --git a/common/main.c b/common/main.c\nindex b0b6e74f5d3d..4b4504557f6e 100644\n--- a/common/main.c\n+++ b/common/main.c\n@@ -19,6 +19,7 @@\n #include <net.h>\n #include <version_string.h>\n #include <efi_loader.h>\n+#include <event.h>\n \n static void run_preboot_environment_command(void)\n {\n@@ -53,6 +54,9 @@ void main_loop(void)\n \tif (IS_ENABLED(CONFIG_USE_PREBOOT))\n \t\trun_preboot_environment_command();\n \n+\tif (event_notify_null(EVT_POST_PREBOOT))\n+\t\treturn;\n+\n \tif (IS_ENABLED(CONFIG_UPDATE_TFTP))\n \t\tupdate_tftp(0UL, NULL, NULL);\n \ndiff --git a/include/event.h b/include/event.h\nindex 1d267f1d1054..3ce5f992b04e 100644\n--- a/include/event.h\n+++ b/include/event.h\n@@ -153,6 +153,15 @@ enum event_t {\n \t */\n \tEVT_MAIN_LOOP,\n \n+\t/**\n+\t * @EVT_POST_PREBOOT:\n+\t * This event is triggered in main_loop() after the preboot command\n+\t * has run, so that devices initialised by preboot (e.g. USB, UFS)\n+\t * are available to event handlers. Its parameter is NULL.\n+\t * A non-zero return value causes the boot to fail.\n+\t */\n+\tEVT_POST_PREBOOT,\n+\n \t/**\n \t * @EVT_OF_LIVE_BUILT:\n \t * This event is triggered immediately after the live device tree has been\n",
    "prefixes": [
        "v4",
        "2/3"
    ]
}