get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2195216,
    "url": "http://patchwork.ozlabs.org/api/patches/2195216/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260210151459.2348758-10-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": "<20260210151459.2348758-10-raymondmaoca@gmail.com>",
    "list_archive_url": null,
    "date": "2026-02-10T15:14:52",
    "name": "[v2,09/16] board: k1: initialize clock and serial devices in SPL",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6cc2cea9f5ee86d31855a2cb6ec25efa71c1101a",
    "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/20260210151459.2348758-10-raymondmaoca@gmail.com/mbox/",
    "series": [
        {
            "id": 491690,
            "url": "http://patchwork.ozlabs.org/api/series/491690/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=491690",
            "date": "2026-02-10T15:14:43",
            "name": "Add board support for Spacemit K1 SoC in SPL",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/491690/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2195216/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2195216/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=20230601 header.b=l0ywZ8iG;\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=\"l0ywZ8iG\";\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 [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 4f9QBt1N76z1xwG\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 02:16:38 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9B26483D3D;\n\tTue, 10 Feb 2026 16:15:41 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 9E47B83DC9; Tue, 10 Feb 2026 16:15:40 +0100 (CET)",
            "from mail-qt1-x834.google.com (mail-qt1-x834.google.com\n [IPv6:2607:f8b0:4864:20::834])\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 2A9DB83D3D\n for <u-boot@lists.denx.de>; Tue, 10 Feb 2026 16:15:38 +0100 (CET)",
            "by mail-qt1-x834.google.com with SMTP id\n d75a77b69052e-50145d27b4cso65848031cf.2\n for <u-boot@lists.denx.de>; Tue, 10 Feb 2026 07:15:38 -0800 (PST)",
            "from ubuntu.localdomain (174-138-202-16.cpe.distributel.net.\n [174.138.202.16]) by smtp.gmail.com with ESMTPSA id\n 6a1803df08f44-8953c057751sm101019286d6.43.2026.02.10.07.15.35\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 10 Feb 2026 07:15:36 -0800 (PST)"
        ],
        "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=20230601; t=1770736537; x=1771341337; 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=uxel+wBoujwO3BG8buPT181W65nJpHxTI/y+o7/seYA=;\n b=l0ywZ8iGol7v7PtnFrWqLqTZWWHo6B+4XRAMDGycFNhaC21zeWOGOwtbR5uhGcrXrP\n CmtS1v2fEzsKA/Lj6WTkDGGQngUfuP+iLtCGFDF05HAwnYuUSyIBCRwNs0DyUSFA1Iwy\n nWcjzCFh8H/zah85+IBAXZOGR0UAcx3+UQzl1dJ5u35K+QGRgzRlhgw71jSViekuxrM9\n NTOtvYkrGu8LDjBUS12ANw7FJSVJal/10K22KdcP7BGwV3buopN18nBykh4EcJdBk9oT\n gPe9/VKmeVso5JazAGrzyGXOI/ax4c70E6UqeiVGhD5PQXWEoOGVsJLs9ZCM5ch4aCWi\n QH2A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770736537; x=1771341337;\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=uxel+wBoujwO3BG8buPT181W65nJpHxTI/y+o7/seYA=;\n b=XE/FOrPlcvBTu1D7FBScUfr4o2jtE6kz+JBZtGT+Yls9vHrbcsOl02JCjeNJnrxwCU\n zOJtWf6yPOEYHyq3T7bH9wxBgKngQ7/uUjEtCQtfhc2UhCQ48Azj5/1BEMDNZhCfmGFJ\n YWTIQCJaWno3/j12NLi7iH69o+hQv2PS8Nn44xHEc3kaWV2ntAbLtOXsAYOTjw3JfrN8\n yrEo88wSt3bdJUgHg+XTJLjKgoboywTuMBPYL4tPedD6wQHg7BHLrO1J+2LfWUll7hQm\n 09/TxPp3vuog13Bg8fTb78G+sz0Z1nprJDcXh2U+60ZkwZ/4EhOk58tftGupo1LQsWX0\n w2+g==",
        "X-Gm-Message-State": "AOJu0YzaXPW3/t39OyjgtfeyCcVuoZtPo1AZKslmRe327ihYrj++Rv9d\n BRa6gRED94r0QuonXfAjALaWI9EK5VDssYDxYsrxUmVtPzcKCZej4s2ZPVUwGg==",
        "X-Gm-Gg": "AZuq6aL7Xu8A1bzPdMEloE6hLA0CCmEozxDQj9WK1vbfLZsRdymQVr1VD7Z7cvp4k2o\n hRZv0cQY4uBRsd/WThwjQVU+hlEve8GdRQTSmRuH9dYP/FnXeD4Oxdkz9Ok5wfsdYfWxnj9VirH\n JlKNsXF6HDEQJu3E8xvClGgvILhBAkWhAfiraiJ/5F7U3dKhqozST7D/7VjEAPVBLruaTn7VMAw\n rRJfeJd/egrFmX7eiY8HKfH07zkL3BgxJlLjo95Ae3bqlYhsfDUNXtst6St/0melnQiENba3duS\n uKavMLmCgXorGK10Quf1pTfAPd44fzI746bXqgeroQCywvTp0CHzioL+OPSJyM29SrMlmACQpC4\n 7hVdXKUu0hGjTHVaCt3CSHR+ygDOzQMzXFZqak6cAXQ7sFZaxZ0f2nBDH+OyyB0H70UeF4jy4EL\n 9bdXJF/f3xrNGcR2NjKevXjT+U90PqO3SzwybLNIVwj7YdMNJEst/oF3UHWERriVycSWruYkS/e\n WgXcaSUAqg=",
        "X-Received": "by 2002:a05:622a:65c3:b0:506:542d:2b3a with SMTP id\n d75a77b69052e-506542d2f4emr106642611cf.11.1770736536594;\n Tue, 10 Feb 2026 07:15:36 -0800 (PST)",
        "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 v2 09/16] board: k1: initialize clock and serial devices in\n SPL",
        "Date": "Tue, 10 Feb 2026 10:14:52 -0500",
        "Message-Id": "<20260210151459.2348758-10-raymondmaoca@gmail.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20260210151459.2348758-1-raymondmaoca@gmail.com>",
        "References": "<20260210151459.2348758-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\nInitialize clock and serial devices in SPL. Otherwise, the device\ndriver won't be loaded in SPL.\n\nSigned-off-by: Raymond Mao <raymond.mao@riscstar.com>\n---\n board/spacemit/k1/spl.c | 39 +++++++++++++++++++++++++++++++++++++++\n 1 file changed, 39 insertions(+)",
    "diff": "diff --git a/board/spacemit/k1/spl.c b/board/spacemit/k1/spl.c\nindex e15cf5f1abf..78f26616347 100644\n--- a/board/spacemit/k1/spl.c\n+++ b/board/spacemit/k1/spl.c\n@@ -3,8 +3,45 @@\n  * Copyright (c) 2025-2026, RISCstar Ltd.\n  */\n \n+#include <dm/device.h>\n+#include <dm/uclass.h>\n+#include <log.h>\n #include <spl.h>\n \n+static void clk_early_init(void)\n+{\n+\tstruct udevice *dev;\n+\tint ret;\n+\n+\tret = uclass_get_device_by_name(UCLASS_CLK, \"clock-controller@d4090000\", &dev);\n+\tif (ret)\n+\t\tpanic(\"Fail to detect clock-controller@d4090000\\n\");\n+\tret = uclass_get_device_by_name(UCLASS_CLK, \"system-controller@d4050000\", &dev);\n+\tif (ret)\n+\t\tpanic(\"Fail to detect system-controller@d4050000\\n\");\n+\tret = uclass_get_device_by_name(UCLASS_CLK, \"system-controller@d4282800\", &dev);\n+\tif (ret)\n+\t\tpanic(\"Fail to detect system-controller@d4282800\\n\");\n+\tret = uclass_get_device_by_name(UCLASS_CLK, \"system-controller@d4015000\", &dev);\n+\tif (ret)\n+\t\tpanic(\"Fail to detect system-controller@d4015000\\n\");\n+\n+\tif (device_active(dev))\n+\t\tlog_debug(\"clk: device is active\\n\");\n+\telse\n+\t\tlog_debug(\"clk: device not active, probing...\\n\");\n+}\n+\n+void serial_early_init(void)\n+{\n+\tstruct udevice *dev;\n+\tint ret;\n+\n+\tret = uclass_get_device(UCLASS_SERIAL, 0, &dev);\n+\tif (ret)\n+\t\tpanic(\"Serial uclass init failed: %d\\n\", ret);\n+}\n+\n void board_init_f(ulong dummy)\n {\n \tint ret;\n@@ -15,6 +52,8 @@ void board_init_f(ulong dummy)\n \n \triscv_cpu_setup();\n \n+\tclk_early_init();\n+\tserial_early_init();\n \tpreloader_console_init();\n }\n \n",
    "prefixes": [
        "v2",
        "09/16"
    ]
}