get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217871,
    "url": "http://patchwork.ozlabs.org/api/patches/2217871/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260330-mtk-mt8189-cpu-type-v1-1-4059c3b52761@baylibre.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": "<20260330-mtk-mt8189-cpu-type-v1-1-4059c3b52761@baylibre.com>",
    "list_archive_url": null,
    "date": "2026-03-30T20:23:18",
    "name": "[1/2] arm: mediatek: add SIP platform bininfo lookups",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e3ea714c322e01918b5e3456581e796f679c60bc",
    "submitter": {
        "id": 87228,
        "url": "http://patchwork.ozlabs.org/api/people/87228/?format=api",
        "name": "David Lechner",
        "email": "dlechner@baylibre.com"
    },
    "delegate": {
        "id": 161331,
        "url": "http://patchwork.ozlabs.org/api/users/161331/?format=api",
        "username": "dlech",
        "first_name": "David",
        "last_name": "Lechner",
        "email": "dlechner@baylibre.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260330-mtk-mt8189-cpu-type-v1-1-4059c3b52761@baylibre.com/mbox/",
    "series": [
        {
            "id": 498087,
            "url": "http://patchwork.ozlabs.org/api/series/498087/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498087",
            "date": "2026-03-30T20:23:17",
            "name": "arm: mediatek: print specific CPU type",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498087/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217871/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217871/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=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=1HUgDKTf;\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=baylibre.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=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.b=\"1HUgDKTf\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=dlechner@baylibre.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 4fl2lR0Np0z1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 07:24:03 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7C06383FD9;\n\tMon, 30 Mar 2026 22:23:49 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 1F05280212; Mon, 30 Mar 2026 22:23:48 +0200 (CEST)",
            "from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com\n [IPv6:2001:4860:4864:20::2a])\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 DC72683CE3\n for <u-boot@lists.denx.de>; Mon, 30 Mar 2026 22:23:45 +0200 (CEST)",
            "by mail-oa1-x2a.google.com with SMTP id\n 586e51a60fabf-4043b27ddeaso3186674fac.1\n for <u-boot@lists.denx.de>; Mon, 30 Mar 2026 13:23:45 -0700 (PDT)",
            "from [127.0.1.1] ([2600:8803:e7e4:500:a67f:a092:38d7:379e])\n by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-41d048e1984sm5882608fac.4.2026.03.30.13.23.43\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 30 Mar 2026 13:23:44 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1774902224;\n x=1775507024;\n 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=wKs1pITaMZCPimQS0fmnnNqtLOdHdMzvP+C/vX3cL9E=;\n b=1HUgDKTfzcOft4KvXlLzwdpsg6NnTQ3q46K4zLF26PIj1lFwJHJUFpipAdYT/agNnh\n heymfxH+kuSNKvM8AbrGTujKXj3McpVviCgdnhbQeVkxJthTnK5gVpXtcXbfZcdWscw3\n 3iKdWNesBCOZFNI62T2t+Gl00PJwAdoYf71yCo99h/zr5s4aFDToz7QbF5zxWkvWY6eg\n QtJZdhOOciHlfCbcnJ5YqgN/q9dT0ty2MpEVXbv3NyH01cgAOvIeT1IIk84GrbG3mPTQ\n OI1DIbkEZbEWy+urXTrWqueF3m86ToodNOS7gD/zoHOJJe+vb2Nm0yBuiLhRaDVxonfG\n /UoQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774902224; x=1775507024;\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=wKs1pITaMZCPimQS0fmnnNqtLOdHdMzvP+C/vX3cL9E=;\n b=fD9l/yQnJeIAhfX41WgYF0wXmrsmuzxBk++aj/Pbo9FJznImANvI5gHF/l7Nfb3Lif\n 5gAbLVI04wDzHGyawqa6nadjz1l5p1DnyTYBpV53SZ5QMueY+r62+ILn6b6ErbBzpTgI\n K34wP+RVPBnJurDRFVxLZzoXkh8u7ngdCpbaPkhWFa8cvH9N3771Eph5n3i6CDkTvnkJ\n LGSrCE2FxWt46HFExqmqBN3/DeU2KutPraWkUfI+LoozUrdLiEzqm6qe0KRvkWxiqv7z\n 21h5GQIcZI6nbE94GYuQ2h0m30VQkQ5dLVjU/SaBe1pKgCTRX0LWopf0nECt2yfll+5H\n n5rg==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCUvdjmfjKGY8MLWb9mNbnnrTz+s1WSfhDlohHONWhlSNNufgl9JwBqTYVgNYZhM+JUsZ5I785Y=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0YyJby7HbceLBXxD7wGmZzMN6JxTK5ACFKXPG/zxbRc+Pgn6S3A6\n LgrD3BV9YolF1bn+xmiCbi8wKOMppTkHKkFvRWfhpsB2m15oNfWWqA6mkKQM7+f6u4RjAK06ASC\n BmEuh",
        "X-Gm-Gg": "ATEYQzwCNll4g7QZq/MQ2yiSMZ+RuiiATiLbWSZECPwvVtaDwO7/oupkgkibFYMfKrX\n 2zcVUe9s9GG0Od0Z94PzXUG+7j/Wx65MbL38pRpmRX/cDIJZMdUwnJeHi4mIKwrNy8oUF3GRXAG\n meZCTnPWKzsK3Y5b8ANobLA+rc4BwrnoQcn+XP8z9qf64EpPSFq4GD7VKgTw42gdtf5cgH//FuK\n IGvAILdNgHvk294HDa+pPOtkjMxahDIULPXheXZWEDQDpLppNVewynR5wKCbQsjLThy47kxVM1+\n mj4t+twMz+Rm6d8YzOLGdqtNgzC7BxV23vuZ2G83Tfa5ifuGEkwNR5wl4XxH8r8DR74897HIPcb\n zlAIB0BjK3DqNk2LyfZPSV21Cw0OEgXROdv5KljsAsuWqylfP7rRlqnnC9t1BkkK9hwhYG7qYyF\n /cxcUn3uWRwj4xBl/yYlvQlQM0hhTl",
        "X-Received": "by 2002:a05:6870:9d9a:b0:41c:fdd7:5b4b with SMTP id\n 586e51a60fabf-41cfdd77fa1mr7121904fac.21.1774902224463;\n Mon, 30 Mar 2026 13:23:44 -0700 (PDT)",
        "From": "David Lechner <dlechner@baylibre.com>",
        "Date": "Mon, 30 Mar 2026 15:23:18 -0500",
        "Subject": "[PATCH 1/2] arm: mediatek: add SIP platform bininfo lookups",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260330-mtk-mt8189-cpu-type-v1-1-4059c3b52761@baylibre.com>",
        "References": "<20260330-mtk-mt8189-cpu-type-v1-0-4059c3b52761@baylibre.com>",
        "In-Reply-To": "<20260330-mtk-mt8189-cpu-type-v1-0-4059c3b52761@baylibre.com>",
        "To": "Tom Rini <trini@konsulko.com>, Ryder Lee <ryder.lee@mediatek.com>,\n Weijie Gao <weijie.gao@mediatek.com>,\n Chunfeng Yun <chunfeng.yun@mediatek.com>,\n Igor Belwon <igor.belwon@mentallysanemainliners.org>,\n GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>",
        "Cc": "Julien Stephan <jstephan@baylibre.com>, u-boot@lists.denx.de,\n David Lechner <dlechner@baylibre.com>",
        "X-Mailer": "b4 0.16-dev",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2861; i=dlechner@baylibre.com;\n h=from:subject:message-id;\n bh=0wQ96CpxG4gTYfxqjYWBRPIfajhuWCb/UVRjlQCFzso=;\n b=owEBhAF7/pANAwAKAcLMIAH/AY/AAcsmYgBpytvBdSmt3o05WxutzKlMTWaZyOQLTlJ2QvaNc\n 7/9+dq5ISOJAUoEAAEKADQWIQTsGNmeYg6D1pzYaJjCzCAB/wGPwAUCacrbwRYcZGxlY2huZXJA\n YmF5bGlicmUuY29tAAoJEMLMIAH/AY/AM0cIAJwIkaJ/VywZgLjt8VFdpiJfLxV53iTWYuv5zHj\n qoOd4U1argkRLWyBbFVL78NdX9Uc1D/AbKhKKYCQtTZTvQLOSa9d+KqWM2pzC/VMYFjU0aOBD1v\n SAs1HIxH77Y3P/C62rpk9mjaQ2xhzRL94m1zwcWJxEBLvJ8wKgz+LUYm8UCTPPw/SidiMHv+Skm\n RdEgJ5v9NVu/bDGGqo7jD57r+ZywtTYMa70SerInSEcJhnbgkymvb6INHC57bNyJ6WlLAfBPcUR\n iLEscN58TAvp0DvJu+KvyzXOPqpKN1S5q9kGtbvG+MBZdgvDYEBi21md1lSmGxWr1Qm2pq5TV4E\n 1zQc=",
        "X-Developer-Key": "i=dlechner@baylibre.com; a=openpgp;\n fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03",
        "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 couple of functions to look up the segment and part name using SIP\ncalls. These will be used to print more accurate CPU information in\nprint_cpuinfo().\n\nSigned-off-by: David Lechner <dlechner@baylibre.com>\n---\n arch/arm/mach-mediatek/cpu.c | 55 ++++++++++++++++++++++++++++++++++++++++++++\n arch/arm/mach-mediatek/cpu.h | 14 +++++++++++\n 2 files changed, 69 insertions(+)",
    "diff": "diff --git a/arch/arm/mach-mediatek/cpu.c b/arch/arm/mach-mediatek/cpu.c\nindex 8e8bc4f9cea..56a41e42df6 100644\n--- a/arch/arm/mach-mediatek/cpu.c\n+++ b/arch/arm/mach-mediatek/cpu.c\n@@ -8,6 +8,11 @@\n #include <init.h>\n #include <wdt.h>\n #include <dm/uclass-internal.h>\n+#include <linux/arm-smccc.h>\n+#include <linux/types.h>\n+\n+#define MTK_SIP_PLAT_BINFO ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, ARM_SMCCC_SMC_64, \\\n+\t\t\t\t\t      ARM_SMCCC_OWNER_SIP, 0x529)\n \n int arch_cpu_init(void)\n {\n@@ -21,3 +26,53 @@ void enable_caches(void)\n \t/* Enable D-cache. I-cache is already enabled in start.S */\n \tdcache_enable();\n }\n+\n+/**\n+ * mediatek_sip_part_name - get the part name\n+ *\n+ * Retrieve the part name of platform description.\n+ *\n+ * This only applicable to SoCs that support SIP plat binfo SMC call.\n+ *\n+ * Returns: the part name or 0 if error or no part name\n+ */\n+u32 mediatek_sip_part_name(void)\n+{\n+\tif (CONFIG_IS_ENABLED(TARGET_MT8188) || CONFIG_IS_ENABLED(TARGET_MT8189) ||\n+\t    CONFIG_IS_ENABLED(TARGET_MT8195) || CONFIG_IS_ENABLED(TARGET_MT8365)) {\n+\t\tstruct arm_smccc_res res __maybe_unused;\n+\n+\t\tarm_smccc_smc(MTK_SIP_PLAT_BINFO, 0, 0, 0, 0, 0, 0, 0, &res);\n+\t\tif (res.a0)\n+\t\t\treturn 0;\n+\n+\t\treturn res.a1;\n+\t}\n+\n+\treturn 0;\n+}\n+\n+/**\n+ * mediatek_sip_segment_name - get the segment name\n+ *\n+ * Retrieve the segment name of platform description.\n+ *\n+ * This only applicable to SoCs that support SIP plat binfo SMC call.\n+ *\n+ * Returns: the segment name or 0 if error or no segment name\n+ */\n+u32 mediatek_sip_segment_name(void)\n+{\n+\tif (CONFIG_IS_ENABLED(TARGET_MT8188) || CONFIG_IS_ENABLED(TARGET_MT8189) ||\n+\t    CONFIG_IS_ENABLED(TARGET_MT8195) || CONFIG_IS_ENABLED(TARGET_MT8365)) {\n+\t\tstruct arm_smccc_res res __maybe_unused;\n+\n+\t\tarm_smccc_smc(MTK_SIP_PLAT_BINFO, 1, 0, 0, 0, 0, 0, 0, &res);\n+\t\tif (res.a0)\n+\t\t\treturn 0;\n+\n+\t\treturn res.a1;\n+\t}\n+\n+\treturn 0;\n+}\ndiff --git a/arch/arm/mach-mediatek/cpu.h b/arch/arm/mach-mediatek/cpu.h\nnew file mode 100644\nindex 00000000000..768284e487f\n--- /dev/null\n+++ b/arch/arm/mach-mediatek/cpu.h\n@@ -0,0 +1,14 @@\n+/* SPDX-License-Identifier: GPL-2.0-only */\n+/*\n+ * Copyright (C) 2026 MediaTek Inc.\n+ */\n+\n+#ifndef _MACH_MEDIATEK_CPU_H_\n+#define _MACH_MEDIATEK_CPU_H_\n+\n+#include <linux/types.h>\n+\n+u32 mediatek_sip_segment_name(void);\n+u32 mediatek_sip_part_name(void);\n+\n+#endif /* _MACH_MEDIATEK_CPU_H_ */\n",
    "prefixes": [
        "1/2"
    ]
}