get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216159,
    "url": "http://patchwork.ozlabs.org/api/patches/2216159/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260325223232.1553212-4-raymondmaoca@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": "<20260325223232.1553212-4-raymondmaoca@gmail.com>",
    "list_archive_url": null,
    "date": "2026-03-25T22:32:19",
    "name": "[v3,03/16] configs: k1: enable early timer support",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "85d3cadaa4f24feea086f34e7ed6d0d4bf1738e4",
    "submitter": {
        "id": 91989,
        "url": "http://patchwork.ozlabs.org/api/people/91989/?format=api",
        "name": "Raymond Mao",
        "email": "raymondmaoca@gmail.com"
    },
    "delegate": {
        "id": 20174,
        "url": "http://patchwork.ozlabs.org/api/users/20174/?format=api",
        "username": "Andes",
        "first_name": "Andes",
        "last_name": "",
        "email": "uboot@andestech.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260325223232.1553212-4-raymondmaoca@gmail.com/mbox/",
    "series": [
        {
            "id": 497518,
            "url": "http://patchwork.ozlabs.org/api/series/497518/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497518",
            "date": "2026-03-25T22:32:17",
            "name": "Add board support for Spacemit K1 SoC in SPL",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/497518/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216159/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216159/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=KuIsZBjv;\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=\"KuIsZBjv\";\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=raymondmaoca@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 4fh1rt6G5wz1y1G\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 09:33:18 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id E365883FBC;\n\tWed, 25 Mar 2026 23:32:58 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 310D783FB6; Wed, 25 Mar 2026 23:32:58 +0100 (CET)",
            "from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com\n [IPv6:2607:f8b0:4864:20::72f])\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 1E9F383A1B\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 23:32:56 +0100 (CET)",
            "by mail-qk1-x72f.google.com with SMTP id\n af79cd13be357-8cfc137464dso56303385a.2\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 15:32:56 -0700 (PDT)",
            "from ubuntu.localdomain (173-206-124-85.cpe.distributel.net.\n [173.206.124.85]) by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8d00e39fc17sm101540185a.5.2026.03.25.15.32.53\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 25 Mar 2026 15:32:54 -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=1774477975; x=1775082775; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=wUtF7QZNmeq7XwiIaMWthd1fe1oj7esP0jrB47x+Yi4=;\n b=KuIsZBjvac+4cbjwo5+1ILo0EqhJxFO+qDfZrkUuVMGWs60R3zVR8m0IL4X67J7OiL\n XVi2u2YrCdEgkv0cWtANsrzV+hmy80ZCKpLOdS+aN1gcYAV0uHm818AzlEq8h9q0qy3F\n po2C162YJlimGTrtzqrHd4Q8iP00PQhoCHTm25UrtvGKqPZEIRzZWcJC9pBJh/bl/FWT\n OjpegTi6ubwP5mkMFMFFZ7bKaUGj7Tl3YWvuqAT7xYwZVfKH0toHam/fl0C+2p8TLU8M\n s9uN5Lfu/Mva/YxJSOv8ON2hrD9bkQ0UE52puDed4BYm3l20vorg0F0xUcmTbclKOsoU\n lPFg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774477975; x=1775082775;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=wUtF7QZNmeq7XwiIaMWthd1fe1oj7esP0jrB47x+Yi4=;\n b=fhE+5o74PDf3Dx31rBt9+yaT7LG9sCkEt493s0Jaecm8HGm39TZC2z/+ymo9QN175p\n +R/uVxYYlIZbwaE+trJYr1OnQPVtoGhj65CAwS0BrZGIdT1trYK4xoHIICfwfvencHDh\n t6nN7XqHkkJir7gSmi6Lc2LKvEMMzMmoe/JR25KzaKKJ979WON6uVp3Dyn6TcImhNBK3\n Yzi/t5aXawJAlrp2b4afpMZ562PAX7NSEs/LswgMfgb9AJfpmONUF2vhThVR+KULhaMK\n fYQ7a8R8gkmaeF1F9K/mrLgQIpD9MRmzorqCyeVtcdCSVYVRVXZZO39NfWmsZyR4OBdb\n gW4w==",
        "X-Gm-Message-State": "AOJu0Ywd/5b6x11xZj9IA2dOK4YovJC0YNLy7Mpq3pLkogJ55WimqkCV\n yMvl4yFvjqlZR7Vm247igFSG8JJEcnxvFL60tNLtFhDmgOa7swaejqnQs/0eKG3R",
        "X-Gm-Gg": "ATEYQzy4OstxAsEqszbaanQBWmE0CyoN2AdLgS77oOijuDl7mMHfuyL8fp26mYSDCgU\n 8h/Is8ri3qPsZ+suhrt50JHjUV6s567r0fNziv8qphUCAS8PlEKnYdz3Mic/JenewDS88TUCrw2\n z13R/h2TNry9nD6kgbaZQnbd5WxWUiSi4Igp9PP5D4hPpSdCKIBSmDv638eyb/Fj1xkb7M99sz1\n SgQQtketfHldFB4YAYXuE0WYbfU5tnS/dIBO+Um9yBMXO+VeJv2a0KShj5O3iiRYULc45FA+MG7\n AL8sqJSPbOtLzYUMUQ23h/cUxXI0p9hs5Bl+DLsaf64F40puEVh+2akSio9P76loFjHTejnY661\n CHEkQaek+DBPamnk9uPQ4Fn5LWliJJSZy/Rt8sBCbYSGNtOYnm02l0/evsiCrAhWstvDSj1R+BF\n UVYItG4Uq3Zc1Xr7ZuY+XJgnbOho6Zi5a4pmIuZOjAX3olddZp6KB/MJX6QotzcuXwGM0IO2xb4\n jEFFffLRD4=",
        "X-Received": "by 2002:a05:620a:31a4:b0:8cd:cd30:779e with SMTP id\n af79cd13be357-8d0010044e9mr719319985a.42.1774477974747;\n Wed, 25 Mar 2026 15:32:54 -0700 (PDT)",
        "From": "Raymond Mao <raymondmaoca@gmail.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "uboot@riscstar.com, u-boot-spacemit@groups.io, raymond.mao@riscstar.com,\n rick@andestech.com, ycliang@andestech.com, trini@konsulko.com,\n lukma@denx.de, hs@nabladev.com, jh80.chung@samsung.com, peng.fan@nxp.com,\n xypron.glpk@gmx.de, randolph@andestech.com, dlan@gentoo.org,\n junhui.liu@pigmoral.tech, neil.armstrong@linaro.org,\n quentin.schulz@cherry.de, samuel@sholland.org, raymondmaoca@gmail.com",
        "Subject": "[PATCH v3 03/16] configs: k1: enable early timer support",
        "Date": "Wed, 25 Mar 2026 18:32:19 -0400",
        "Message-Id": "<20260325223232.1553212-4-raymondmaoca@gmail.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20260325223232.1553212-1-raymondmaoca@gmail.com>",
        "References": "<20260325223232.1553212-1-raymondmaoca@gmail.com>",
        "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": "From: Raymond Mao <raymond.mao@riscstar.com>\n\nEnable CONFIG_TIMER_EARLY to allow udelay() calls during\nearly initialization phases. This is required for proper\ntiming operations before the full timer driver is available.\n\nSigned-off-by: Raymond Mao <raymond.mao@riscstar.com>\n---\nChanges in v3:\n- None.\n\n configs/spacemit_k1_defconfig | 2 ++\n include/configs/k1.h          | 3 +++\n 2 files changed, 5 insertions(+)",
    "diff": "diff --git a/configs/spacemit_k1_defconfig b/configs/spacemit_k1_defconfig\nindex 3cf199e4032..9d7d1041247 100644\n--- a/configs/spacemit_k1_defconfig\n+++ b/configs/spacemit_k1_defconfig\n@@ -21,6 +21,7 @@ CONFIG_SYS_LOAD_ADDR=0x200000\n CONFIG_ARCH_RV64I=y\n CONFIG_RISCV_SMODE=y\n CONFIG_TARGET_SPACEMIT_K1=y\n+CONFIG_SPL_RISCV_SMODE=y\n CONFIG_FIT=y\n CONFIG_SUPPORT_RAW_INITRD=y\n CONFIG_OF_BOARD_SETUP=y\n@@ -41,3 +42,4 @@ CONFIG_DEBUG_UART_SHIFT=2\n CONFIG_DEBUG_UART_NS16550=y\n CONFIG_DEBUG_UART_ANNOUNCE=y\n # CONFIG_DEBUG_SBI_CONSOLE is not set\n+CONFIG_TIMER_EARLY=y\ndiff --git a/include/configs/k1.h b/include/configs/k1.h\nindex e0b05c50b70..8e148803dea 100644\n--- a/include/configs/k1.h\n+++ b/include/configs/k1.h\n@@ -13,4 +13,7 @@\n #define CFG_SYS_NS16550_CLK\t    14700000\n #define CFG_SYS_NS16550_IER\t    0x40 /* UART Unit Enable */\n \n+#define RISCV_MMODE_TIMER_FREQ\t    24000000\n+#define RISCV_SMODE_TIMER_FREQ\t    24000000\n+\n #endif /* __CONFIG_H */\n",
    "prefixes": [
        "v3",
        "03/16"
    ]
}