get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218593,
    "url": "http://patchwork.ozlabs.org/api/patches/2218593/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260401-casey-ccf-compat-v2-2-414d5b7f040b@linaro.org/",
    "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": "<20260401-casey-ccf-compat-v2-2-414d5b7f040b@linaro.org>",
    "list_archive_url": null,
    "date": "2026-04-01T14:15:18",
    "name": "[v2,02/11] common: add an option to skip DM pre-relocation",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "08d41123761a489a1ff00b5e2ee570e9edb804c1",
    "submitter": {
        "id": 90679,
        "url": "http://patchwork.ozlabs.org/api/people/90679/?format=api",
        "name": "Casey Connolly",
        "email": "casey.connolly@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260401-casey-ccf-compat-v2-2-414d5b7f040b@linaro.org/mbox/",
    "series": [
        {
            "id": 498341,
            "url": "http://patchwork.ozlabs.org/api/series/498341/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498341",
            "date": "2026-04-01T14:15:17",
            "name": "Linux compat improvements and CCF prep",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498341/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218593/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218593/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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=ZkMtO+d+;\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=linaro.org",
            "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=linaro.org header.i=@linaro.org header.b=\"ZkMtO+d+\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=casey.connolly@linaro.org"
        ],
        "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 4fm6Tg467Mz1yCp\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 01:15:51 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 93C59840AB;\n\tWed,  1 Apr 2026 16:15:31 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 1E8C88408D; Wed,  1 Apr 2026 16:15:30 +0200 (CEST)",
            "from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com\n [IPv6:2a00:1450:4864:20::32f])\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 0F1D184010\n for <u-boot@lists.denx.de>; Wed,  1 Apr 2026 16:15:27 +0200 (CEST)",
            "by mail-wm1-x32f.google.com with SMTP id\n 5b1f17b1804b1-483487335c2so74704745e9.2\n for <u-boot@lists.denx.de>; Wed, 01 Apr 2026 07:15:27 -0700 (PDT)",
            "from lion.localdomain (p4fc3dd86.dip0.t-ipconnect.de.\n [79.195.221.134]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4887c8bcaf8sm43224135e9.27.2026.04.01.07.15.25\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 01 Apr 2026 07:15:25 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1775052926; x=1775657726; darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=CQ+gm0zG3GJxN3n1mzflNTKMTeIaXJtAS2Va848P6kE=;\n b=ZkMtO+d+98+1BZ0ac/FJqypi21K5UN92uuuRNa9qq1nhbYiRof79uCpCvrSJ+mL8LH\n 0Gq7Sqzg7LQRoRRMbdqmdNY9aHKrEZf4OsDpUF0ns8ZxLmroEHjK/4ufM6TnJMtfGMdC\n v2ULkhKXx4gTZJG+VKbl/gJaMzMqUOi2vBTYGr4dz/rnkZq4f6ZWiFXhys7NX1vP5WqM\n R179OMi7X3kZ6285uTZA/N+d9FOWEu7SPrn+d6oL11HX1tqm16/TWmXS32jCiVc1EZHJ\n QGu8wlb59Ut+rZXd2kbGhZwMSZRlZyCNKiVqGzYkNjRhA8wSBOGyc1Z1NTvajdFT8wqv\n HWNA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775052926; x=1775657726;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=CQ+gm0zG3GJxN3n1mzflNTKMTeIaXJtAS2Va848P6kE=;\n b=kY45RV63g7FX+QooSzhS+AqmHOoFunRG24ybSiyR4ZScRrlBMzr3jq1K+zGPKipSUd\n bSz7afnUWduH91pc9FmS3xphxI8uyXe08t8On7lML2iD6jFwm0Z1iO3s2N7X9QY4orKQ\n jl94arhX15ALLb917yxMSnAemybZiwKoce/uvcGyrhy25ZbsahCMQWFTQUXX6wiQObOA\n +tW9gmAEVfan8DNrMnthWI4zO7ReIc4+StlXKFq4yHPlWSvRiUUMlhZwRW5RIiQ7/GdA\n v+LUQW325FSK9L7DKAYx5h1dNjd5+colLylBM7dSLGTTmIapf2bS9815kRWGGYvTLOIn\n K7nA==",
        "X-Gm-Message-State": "AOJu0YyT2MOWdFGOsqk3GKtT84ZL+/KpbOmDL6R04yvTnnM9ouSXXyac\n U6EXZuvX0P0bMgKH8UzwBy8DO0EZ8NWH759fgU7mVfWuzkr6e4kS+AP5BaL+IykcIiE=",
        "X-Gm-Gg": "ATEYQzxm7M9cs/FdsyhvQEBmf65fnlfB7WwRrhjqeoo7wVwBAIWy5IVE3SQv3aTYuYS\n jFDvQU0bzPqKXChJMIsVqYVP1ABaPWrzSie2DDPvoEsERxkGZwgrZLpLw/Y3y4O7w6eYBJ9HJr0\n EuqE+lr5YJCUZ5eO8eNT/gsy8GEdEB1YB5h+sOLtUKC4gqvo+iI513ZqDgH30vYVxJasrwB2DfX\n qBaw9zZ/zaJwyl/ea8FNv/jS/PJEmYPZNnFS5kgzemy6EzTvhuVBGEi6dP92Lj9HTqgXs7cY8lv\n cldLID/U2bSjMMiJvO/GTTq8r4i67bLbA9r2h5vFi5YiHl0QhZyTNW/DTv5YwASYMAshU9bskaz\n Gar2vnT+iiWzVWlFT5INhquR9m5TKU6mX1WDw3/mOllQVL1N9KhsEa6YAwOfIcVfH2/L/vzjEJX\n 5rwey47gEoUw1AWnnda/0RPUwZLky53ZjWyHojRiTwMVyK0xKrASuFtD8k8Ed5Ze0A3Tzo",
        "X-Received": "by 2002:a05:600c:8718:b0:487:1c2:6a4f with SMTP id\n 5b1f17b1804b1-488835c0534mr71519115e9.31.1775052926364;\n Wed, 01 Apr 2026 07:15:26 -0700 (PDT)",
        "From": "Casey Connolly <casey.connolly@linaro.org>",
        "Date": "Wed, 01 Apr 2026 16:15:18 +0200",
        "Subject": "[PATCH v2 02/11] common: add an option to skip DM pre-relocation",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260401-casey-ccf-compat-v2-2-414d5b7f040b@linaro.org>",
        "References": "<20260401-casey-ccf-compat-v2-0-414d5b7f040b@linaro.org>",
        "In-Reply-To": "<20260401-casey-ccf-compat-v2-0-414d5b7f040b@linaro.org>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Tom Rini <trini@konsulko.com>,\n Casey Connolly <casey.connolly@linaro.org>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Simon Glass <sjg@chromium.org>,\n Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>,\n Romain Gantois <romain.gantois@bootlin.com>,\n Andrew Goodbody <andrew.goodbody@linaro.org>,\n Patrice Chotard <patrice.chotard@foss.st.com>,\n Raymond Mao <raymondmaoca@gmail.com>, Peng Fan <peng.fan@nxp.com>",
        "X-Mailer": "b4 0.15-dev-47773",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2449;\n i=casey.connolly@linaro.org; h=from:subject:message-id;\n bh=BTSZ88kTLdi5mw8IXVoDVatMv6+okA8GUUaE3nA3lEw=;\n b=owGbwMvMwCFYaeA6f6eBkTjjabUkhsyzGpX6IuE3OIVPuO3sCuacUv830OrME6+s2Tf2NT5xd\n y9VvHqzo5SFQZCDQVZMkUX8xDLLprWX7TW2L7gAM4eVCWQIAxenAEyEo4ThD2fft3efT+01yDZv\n qwx9J3mid2ne21UH1Eq5t/i+lbhztJfhnyGX68PCp+/1F7rq7WLMFP646NDaFRLJZz3ub96nuel\n KTR0A",
        "X-Developer-Key": "i=casey.connolly@linaro.org; a=openpgp;\n fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47",
        "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": "For some platforms like Qualcomm, it isn't necessary to perform a full\nDM init and scan prior to relocation, it's also particularly slow since\nit runs with dcache disabled and prior to building the livetree.\n\nThe only device which needs to be probed pre-reloc is the serial\nport (otherwise U-Boot will panic), however this can be found through\n/chosen/stdout-path.\n\nTherefore we can avoid scanning the entire FDT and binding devices,\ninstead just binding the serial port and clock driver on-demand.\n\nThis decreases the total time from power on to reaching the interactive\nU-Boot shell be about 50% (from ~2.8s to 1.8s).\n\nSigned-off-by: Casey Connolly <casey.connolly@linaro.org>\n---\n Kconfig          | 12 ++++++++++++\n common/board_f.c | 11 ++++++++++-\n 2 files changed, 22 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/Kconfig b/Kconfig\nindex ce25ea24a60f..2f7677f47f16 100644\n--- a/Kconfig\n+++ b/Kconfig\n@@ -473,8 +473,20 @@ config SKIP_RELOCATE\n \thelp\n \t  Skips relocation of U-Boot allowing for systems that have extremely\n \t  limited RAM to run U-Boot.\n \n+config SKIP_EARLY_DM\n+\tbool \"Skips initialising device model pre-relocation\"\n+\thelp\n+\t  Enable this option to skip scanning and probing devices prior to\n+\t  U-Boot relocation (during board_f). Unless console support is disabled\n+\t  a serial port is still required, however this can be found through\n+\t  /chosen/stdout-path in FDT. If the serial port relies on other devices\n+\t  like clocks these will also be bound and probed on demand.\n+\n+\t  This can speed up time to interactive console by about 50%, particularly\n+\t  when combined with OF_LIVE.\n+\n endif # EXPERT\n \n config PHYS_64BIT\n \tbool \"64bit physical address support\"\ndiff --git a/common/board_f.c b/common/board_f.c\nindex df2b0dc899bf..2713438cc18f 100644\n--- a/common/board_f.c\n+++ b/common/board_f.c\n@@ -813,9 +813,18 @@ static int initf_dm(void)\n \tif (!CONFIG_IS_ENABLED(SYS_MALLOC_F))\n \t\treturn 0;\n \n \tbootstage_start(BOOTSTAGE_ID_ACCUM_DM_F, \"dm_f\");\n-\tret = dm_init_and_scan(true);\n+\n+\t/*\n+\t * If SKIP_EARLY_DM is set then we just create an empty device\n+\t * model, the serial port will still be bound later through\n+\t * serial_find_console_or_panic() via /chosen/stdout-path\n+\t */\n+\tif (!CONFIG_IS_ENABLED(SKIP_EARLY_DM))\n+\t\tret = dm_init_and_scan(true);\n+\telse\n+\t\tret = dm_init(false);\n \tif (ret)\n \t\treturn ret;\n \n \tret = dm_autoprobe();\n",
    "prefixes": [
        "v2",
        "02/11"
    ]
}