get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220155,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220155/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260406142411.2992618-5-daniel@thingy.jp/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260406142411.2992618-5-daniel@thingy.jp>",
    "date": "2026-04-06T14:24:10",
    "name": "[v2,4/5] virtio: mmio: Allow instantiation via platform data",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "0c6becc94633c915f3ad9a5859426ccd2867d65b",
    "submitter": {
        "id": 85408,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/85408/?format=api",
        "name": "Daniel Palmer",
        "email": "daniel@thingy.jp"
    },
    "delegate": {
        "id": 14103,
        "url": "http://patchwork.ozlabs.org/api/1.1/users/14103/?format=api",
        "username": "spectrum",
        "first_name": "Angelo",
        "last_name": "Dureghello",
        "email": "sysamfw@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260406142411.2992618-5-daniel@thingy.jp/mbox/",
    "series": [
        {
            "id": 498861,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/498861/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498861",
            "date": "2026-04-06T14:24:06",
            "name": "Add virtio-mmio support to m68k virt machine",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498861/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220155/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220155/checks/",
    "tags": {},
    "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 (1024-bit key;\n unprotected) header.d=thingy.jp header.i=@thingy.jp header.a=rsa-sha256\n header.s=google header.b=iV6LBOFa;\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=thingy.jp",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=thingy.jp header.i=@thingy.jp header.b=\"iV6LBOFa\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=thingy.jp",
            "phobos.denx.de; spf=pass smtp.mailfrom=daniel@0x0f.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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqBSC0ZPPz1yFt\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 00:25:15 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 0352D840BE;\n\tMon,  6 Apr 2026 16:24:41 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id CA3C584101; Mon,  6 Apr 2026 16:24:39 +0200 (CEST)",
            "from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com\n [IPv6:2607:f8b0:4864:20::1033])\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 A0DE48341A\n for <u-boot@lists.denx.de>; Mon,  6 Apr 2026 16:24:37 +0200 (CEST)",
            "by mail-pj1-x1033.google.com with SMTP id\n 98e67ed59e1d1-35d9c7bf9a1so3595142a91.3\n for <u-boot@lists.denx.de>; Mon, 06 Apr 2026 07:24:37 -0700 (PDT)",
            "from kinako.work.home.arpa\n (p1866070-ipxg00f01sizuokaden.shizuoka.ocn.ne.jp. [180.1.30.70])\n by smtp.googlemail.com with ESMTPSA id\n d9443c01a7336-2b27478cb4fsm156885295ad.29.2026.04.06.07.24.33\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Apr 2026 07:24:35 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,\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=thingy.jp; s=google; t=1775485476; x=1776090276; 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=XJpbXycl8bPDKYjuPFFq8DJKD6pPqTPnXXlDYtn5IuE=;\n b=iV6LBOFaDj31yDEWws0RYYW2oOR5LUeWIL4/qCsIzb8pRTRgPJLp2J7HLCYsOAhuDC\n rgZy0Uyke8+l1qnPSLovC/jYswWeuPkKV86qjYGA5MePVKIL2hlQ3z8K+o0OdyW47qvh\n IE57Nfoiq0T9loYZglamcf4ChA/emzJX/dtCo=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775485476; x=1776090276;\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=XJpbXycl8bPDKYjuPFFq8DJKD6pPqTPnXXlDYtn5IuE=;\n b=VfXLQRPUu00OvzfBK5Tf6sXvACaIo5q+OY+H6z86mUn2XlENc6GGGHW8lxRfnp6HfX\n y1Se9y+c9+mnEzywJ8QorCwYEaH2IzKeWdUSK/VZKUUBI9tj8LmdFnP/uhKIjtDI27E6\n 6VKxX/gMgd6Nl8yjpw76ThRCH/A7PE1lOizbcId/bYbFPm0IMjlrIuC3gJHc11KvJqop\n MBm0t+MA04hiHf8yrx/alL8uzYITBfYxMxGvYO686UHPLlPYBS2f9C7JYaVdBc/YgeUu\n SyFY5wO8ialaFzXwcVaDPAMUrXPBs1+UA63Qr4TDVt73Cz0XGFR1r72NO+DGgeDAmpHw\n LMFg==",
        "X-Gm-Message-State": "AOJu0YwOKasjy9bb/cWgcupwuCyKEfvBAu7oesy5alDOL1SEzMSgMXIW\n JV/gRNgIvOQ+WXcHrvqo9TdVrOj0lO6L2XSPLA+bCBJMi2B8SYAmESMwnhUDywBI4YvqSKHOz7I\n RZefH",
        "X-Gm-Gg": "AeBDiev7k3NogYK9djsyhiKcaNC10dEDsftllrnlIzGyU7HejpLgoI/tKXrHF8pcRfk\n 5vblipp3ZogwavxEVujqoBBA6e/mH1ES3h21VzDnB1mUbOJMc/U3/emjWi3DpA0Iwuyfl1riOwl\n 8e1GjUsiTEh2+7GUtoNt8LCbziIHLlfz6H2Ajss7QyQVCYraaR3bVywtXih2LPmDlCnhnkSrnQ4\n q7aAeXPXyUrqCvu2VtHE0mjoqz09O1bC9cSZGrootRvJl5GKaIzDijDHNNlVt+hi91aMSzGLyYd\n MXGM7KWETTZCo/7rn/nWGgzXDRxcRNNE4+QdQHsPf2x+ljGe7fefCPQYAIFg1dq6e9tuYBQuXs+\n yOOORltKudRhFDUx8XKN/tyjO6zTjvdAbgKUxRx6TQdMSSiKEw8BRonMIRmJuspZULU+HL8RLpj\n R4xK4DmkHqADaMZ7Gl/K+vPBmOc0gqOr20KnkMWGogdDd90Ywte4MCahuBdbis7saH2n0btQlWn\n 9B9CdXCzrs=",
        "X-Received": "by 2002:a17:903:3586:b0:2b0:b325:748a with SMTP id\n d9443c01a7336-2b281705e9fmr135455995ad.22.1775485476059;\n Mon, 06 Apr 2026 07:24:36 -0700 (PDT)",
        "From": "Daniel Palmer <daniel@thingy.jp>",
        "To": "visitorckw@gmail.com,\n\tangelo@kernel-space.org,\n\tbmeng.cn@gmail.com",
        "Cc": "u-boot@lists.denx.de,\n\tDaniel Palmer <daniel@thingy.jp>",
        "Subject": "[PATCH v2 4/5] virtio: mmio: Allow instantiation via platform data",
        "Date": "Mon,  6 Apr 2026 23:24:10 +0900",
        "Message-ID": "<20260406142411.2992618-5-daniel@thingy.jp>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20260406142411.2992618-1-daniel@thingy.jp>",
        "References": "<20260406142411.2992618-1-daniel@thingy.jp>",
        "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": "The m68k QEMU virt machine doesn't use devicetree, yet, so\nallow it to create virtio-mmio instances via platform data.\n\nSigned-off-by: Daniel Palmer <daniel@thingy.jp>\n---\n drivers/virtio/virtio_mmio.c | 27 ++++++++++++++++++---------\n include/virtio_mmio.h        | 12 ++++++++++++\n 2 files changed, 30 insertions(+), 9 deletions(-)\n create mode 100644 include/virtio_mmio.h",
    "diff": "diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c\nindex ddf873fa96fb..51ef90c768af 100644\n--- a/drivers/virtio/virtio_mmio.c\n+++ b/drivers/virtio/virtio_mmio.c\n@@ -12,6 +12,7 @@\n #include <virtio_types.h>\n #include <virtio.h>\n #include <virtio_ring.h>\n+#include <virtio_mmio.h>\n #include <linux/bug.h>\n #include <linux/compat.h>\n #include <linux/err.h>\n@@ -335,21 +336,28 @@ static int virtio_mmio_notify(struct udevice *udev, struct virtqueue *vq)\n \n static int virtio_mmio_of_to_plat(struct udevice *udev)\n {\n-\tstruct virtio_mmio_priv *priv = dev_get_priv(udev);\n+\tstruct virtio_mmio_plat *plat = dev_get_plat(udev);\n+\tfdt_addr_t addr;\n+\n+\taddr = dev_read_addr(udev);\n \n-\tpriv->base = (void __iomem *)(ulong)dev_read_addr(udev);\n-\tif (priv->base == (void __iomem *)FDT_ADDR_T_NONE)\n+\tif (addr == FDT_ADDR_T_NONE)\n \t\treturn -EINVAL;\n \n+\tplat->base = addr;\n+\n \treturn 0;\n }\n \n static int virtio_mmio_probe(struct udevice *udev)\n {\n+\tstruct virtio_mmio_plat *plat = dev_get_plat(udev);\n \tstruct virtio_mmio_priv *priv = dev_get_priv(udev);\n \tstruct virtio_dev_priv *uc_priv = dev_get_uclass_priv(udev);\n \tu32 magic;\n \n+\tpriv->base = (void __iomem *)plat->base;\n+\n \t/* Check magic value */\n \tmagic = readl(priv->base + VIRTIO_MMIO_MAGIC_VALUE);\n \tif (magic != ('v' | 'i' << 8 | 'r' << 16 | 't' << 24)) {\n@@ -405,11 +413,12 @@ static const struct udevice_id virtio_mmio_ids[] = {\n };\n \n U_BOOT_DRIVER(virtio_mmio) = {\n-\t.name\t= \"virtio-mmio\",\n-\t.id\t= UCLASS_VIRTIO,\n-\t.of_match = virtio_mmio_ids,\n-\t.ops\t= &virtio_mmio_ops,\n-\t.probe\t= virtio_mmio_probe,\n+\t.name       = \"virtio-mmio\",\n+\t.id         = UCLASS_VIRTIO,\n+\t.of_match   = virtio_mmio_ids,\n+\t.ops        = &virtio_mmio_ops,\n+\t.probe      = virtio_mmio_probe,\n \t.of_to_plat = virtio_mmio_of_to_plat,\n-\t.priv_auto\t= sizeof(struct virtio_mmio_priv),\n+\t.priv_auto  = sizeof(struct virtio_mmio_priv),\n+\t.plat_auto  = sizeof(struct virtio_mmio_plat),\n };\ndiff --git a/include/virtio_mmio.h b/include/virtio_mmio.h\nnew file mode 100644\nindex 000000000000..8c072826db55\n--- /dev/null\n+++ b/include/virtio_mmio.h\n@@ -0,0 +1,12 @@\n+/* SPDX-License-Identifier: GPL-2.0+ */\n+\n+#ifndef __VIRTIO_MMIO_H__\n+#define __VIRTIO_MMIO_H__\n+\n+#include <linux/types.h>\n+\n+struct virtio_mmio_plat {\n+\tphys_addr_t base;\n+};\n+\n+#endif /* __VIRTIO_MMIO_H__ */\n",
    "prefixes": [
        "v2",
        "4/5"
    ]
}