get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217872,
    "url": "http://patchwork.ozlabs.org/api/patches/2217872/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260330-mtk-mt8189-cpu-type-v1-2-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-2-4059c3b52761@baylibre.com>",
    "list_archive_url": null,
    "date": "2026-03-30T20:23:19",
    "name": "[2/2] arm: mediatek: mt8189: print specific CPU information",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "84f060787789b4c6c4ae724694bc9159ab39f27d",
    "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-2-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/2217872/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217872/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=EK6IWlY+;\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=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=\"EK6IWlY+\";\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 [85.214.62.61])\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 4fl2lf4wnyz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 07:24:14 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id F24FF83E7A;\n\tMon, 30 Mar 2026 22:23:52 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 5B16E84010; Mon, 30 Mar 2026 22:23:50 +0200 (CEST)",
            "from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com\n [IPv6:2607:f8b0: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 DA35783E7A\n for <u-boot@lists.denx.de>; Mon, 30 Mar 2026 22:23:46 +0200 (CEST)",
            "by mail-ot1-x32f.google.com with SMTP id\n 46e09a7af769-7d751ef36ccso2691340a34.0\n for <u-boot@lists.denx.de>; Mon, 30 Mar 2026 13:23:46 -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.44\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=1774902225;\n x=1775507025;\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=yfUPTNckqmGiFOlI+Yd0XG03DIsWZ3M+NREj0jbNjoQ=;\n b=EK6IWlY+/xjz9LsQt1bK9bkTCnmju4bkgUI2a7NYB9SOH7Yud75lm79atPM/UK0TlT\n UZYXUPX+hM7qGIQq9aZCRZKohViFr2s927RTpBOZf2mnhY36O2VMc/jrLhzdiQS9ZNjX\n jWdFDM957Io3agbxdInDSIhwnXZrcA6Xg1L4mtVKkqmiD/ZJQuK/gbegwMbdHk4m4Z8Q\n EDa08UQqmhiZPFE93eLaxxmlXoHLlKmKA3xfNEfQSBweqn4Q1scWGrZS0CKokvMSUK8t\n Nk0yF373bbduwnHjy2jbSyjUgWJ3uw8XS+CcQJ2VQ/ZwcWtlPHCYm1c2HgA6CtpoU7wZ\n ooAg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774902225; x=1775507025;\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=yfUPTNckqmGiFOlI+Yd0XG03DIsWZ3M+NREj0jbNjoQ=;\n b=iRKaHBTMT0GYnmQ2ryjbcft4eq+f5frD0XvMHGpzbvWsTDoXg5JhUhI6VdH8HXYKA3\n qr10NFemOPR85/vDLaw87fubPj6yj/eJJ4DSWma9H5g+pO5cNmejdp8LSj/E3mHDO4cz\n G3aFFpLUNxXvLs9cXZVBwog++w/taGAQHHxMMNl0WjvVITpd9My30tbRzDuHwb6VwZVQ\n mSzzpvxme5UwOKJYBhpmooN0X+TfPUZeQgQnrPXxbTmlaOYLMuzOQzBtFMYjNCDRC2ts\n aiMOOwbxrZruhj9gz+8BBGPGm2cc7XvADIC3bXauAY/hfEbeGnGPG9Y0peYm0lNBm4nI\n DCBg==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCVepaaVfBKxrtDI6whpeHtYjj6ko1YG4a1oO2HR3mO5t4/E9/O7DoX2CvVUGabDPr3v5sdyOT8=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0YwZkd3+7Tt1xfYXYiB99Y9tgjRx9lZd5XmDTjsZbpcPVTjVx+km\n DCr4/FFXKmzWUQ1azIXBqIne9mILu86HLYCR+J6TIIg7+PGVDt+Abo0vmkoWYnhPu4A=",
        "X-Gm-Gg": "ATEYQzw0feP9tkVZilNuPbpuI5tChZdH3Ii9YUSL+XROY+q+BhmiwfsQfvnM9Rhj/Ez\n TZXgkTZrheKkHEX8UxeSge0QweonRdyC4VjiOr+eYwpb5vxcb9iwaVLh1e+Qgbi9QSWtnwmeRud\n nWatcjqMrBJPHexiA7V0XHDzsbOYJlvHWSEOuJQPRCC+p8ivuX0xtVuh1zUS6DAMdeckVyj1rzU\n xbZSUQBDe9/m5wX+4CbFWljxhy00+vlWbLS9FZDpEDjhiRoAaVU9BsNAVMByXMTpTO44dcQUvkd\n TURLamlzdax9Q6PJ40UcR/X4vvU59D8Q+9zLrETc3cczrpk+9+xieX1UsfcOxFi1e7i7F67hLK1\n xWANEYnR1VZR9zAQrrVlLQq0JW2zYV3PSQBu7pXThHumchf/QdRyG09dbcnb+ob5Xq+prI/cTv3\n YRkADVoRHY0DCFGTuQCo8yQaHnMI46",
        "X-Received": "by 2002:a05:6820:62a:b0:67e:17fa:c7b3 with SMTP id\n 006d021491bc7-67e1867a226mr7340385eaf.30.1774902225421;\n Mon, 30 Mar 2026 13:23:45 -0700 (PDT)",
        "From": "David Lechner <dlechner@baylibre.com>",
        "Date": "Mon, 30 Mar 2026 15:23:19 -0500",
        "Subject": "[PATCH 2/2] arm: mediatek: mt8189: print specific CPU information",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260330-mtk-mt8189-cpu-type-v1-2-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=1489; i=dlechner@baylibre.com;\n h=from:subject:message-id;\n bh=c2lQ+j7XSMIyRJp9Ld3yPMAFS5cYxTnpEH4W6CJn4pM=;\n b=owEBhAF7/pANAwAKAcLMIAH/AY/AAcsmYgBpytvI6IyZUfuxcg4WuVH1qRpRjYEdR6iNium0T\n Ic1rG3hiG6JAUoEAAEKADQWIQTsGNmeYg6D1pzYaJjCzCAB/wGPwAUCacrbyBYcZGxlY2huZXJA\n YmF5bGlicmUuY29tAAoJEMLMIAH/AY/AkZMH/ipHp2mr0/kRG89l8/OoSCKUI7oHydemiMytmiX\n 890pKitRwuby3C7TVM42uQFoXMHxM1AzlgvrJJJN0BHXhYxAvAix+OC6A6e2O8ZaNNImaDwTAY/\n RpBU8F3VGLguaKclWhxAKAAfMGn5CyM1BxhBY1jOW5/jTHMpn8zmyLap5P1A+GZ6/b3U8Xos7Hv\n 9ALUeylCw9C7Zz4QAhXUEva0IVdrA0T2njZoPDUgW+pxjC1UQKtkthj9AnL0be5BaFXcClofw8a\n YitIidEke2AYUzFtzpgEDGvGDTrze9Idw1XcnSpQXl5UztSzLi0hCDBcnELZ3fm0mQu6HOC2y/d\n wPk8=",
        "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": "Modify the print_cpuinfo() function to print a more specific CPU name\nwhen possible.\n\nSigned-off-by: David Lechner <dlechner@baylibre.com>\n---\n arch/arm/mach-mediatek/mt8189/init.c | 32 +++++++++++++++++++++++++++++++-\n 1 file changed, 31 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/arch/arm/mach-mediatek/mt8189/init.c b/arch/arm/mach-mediatek/mt8189/init.c\nindex 648c17ac305..ec7587c3586 100644\n--- a/arch/arm/mach-mediatek/mt8189/init.c\n+++ b/arch/arm/mach-mediatek/mt8189/init.c\n@@ -11,6 +11,8 @@\n #include <linux/kernel.h>\n #include <linux/sizes.h>\n \n+#include \"../cpu.h\"\n+\n DECLARE_GLOBAL_DATA_PTR;\n \n int dram_init(void)\n@@ -33,9 +35,37 @@ void reset_cpu(ulong addr)\n \t\tpsci_system_reset();\n }\n \n+static const char *mediatek_get_segment_name_string(void)\n+{\n+\tu32 seg = mediatek_sip_segment_name();\n+\n+\tswitch (seg) {\n+\tcase 0x80:\n+\t\treturn \"MT8391AV/AZA\";\n+\tcase 0x81:\n+\t\treturn \"MT8371AV/AZA\";\n+\tcase 0x82:\n+\t\treturn \"MT8371LV/AZA\";\n+\tcase 0x88:\n+\t\treturn \"MT8391IV/AZA\";\n+\tcase 0x89:\n+\t\treturn \"MT8371IV/AZA\";\n+\tdefault:\n+\t\treturn NULL;\n+\t}\n+}\n+\n int print_cpuinfo(void)\n {\n-\tprintf(\"CPU:   MediaTek MT8189\\n\");\n+\tconst char *seg_name = mediatek_get_segment_name_string();\n+\tu32 part = mediatek_sip_part_name();\n+\n+\tif (seg_name)\n+\t\tprintf(\"CPU:   MediaTek %s\\n\", seg_name);\n+\telse if (part)\n+\t\tprintf(\"CPU:   MediaTek part MT%.4x\\n\", part);\n+\telse\n+\t\tprintf(\"CPU:   MediaTek MT8189\\n\");\n \n \treturn 0;\n }\n",
    "prefixes": [
        "2/2"
    ]
}