get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221240,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2221240/?format=api",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.0/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": "<20260408220928.3328551-4-daniel@thingy.jp>",
    "date": "2026-04-08T22:09:26",
    "name": "[v3,3/5] virtio: mmio: Allow instantiation via platform data",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0c6becc94633c915f3ad9a5859426ccd2867d65b",
    "submitter": {
        "id": 85408,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/85408/?format=api",
        "name": "Daniel Palmer",
        "email": "daniel@thingy.jp"
    },
    "delegate": {
        "id": 14103,
        "url": "http://patchwork.ozlabs.org/api/1.0/users/14103/?format=api",
        "username": "spectrum",
        "first_name": "Angelo",
        "last_name": "Dureghello",
        "email": "sysamfw@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260408220928.3328551-4-daniel@thingy.jp/mbox/",
    "series": [
        {
            "id": 499218,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/499218/?format=api",
            "date": "2026-04-08T22:09:23",
            "name": "Add virtio-mmio support to m68k virt machine",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/499218/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221240/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=lDTG5uxf;\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=\"lDTG5uxf\";\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 4frch14Lxwz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 08:10:25 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 3B5A98419C;\n\tThu,  9 Apr 2026 00:10:03 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 4A73884198; Thu,  9 Apr 2026 00:10:01 +0200 (CEST)",
            "from mail-pf1-x430.google.com (mail-pf1-x430.google.com\n [IPv6:2607:f8b0:4864:20::430])\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 1D35D83DC9\n for <u-boot@lists.denx.de>; Thu,  9 Apr 2026 00:09:59 +0200 (CEST)",
            "by mail-pf1-x430.google.com with SMTP id\n d2e1a72fcca58-82c68339cf0so165240b3a.0\n for <u-boot@lists.denx.de>; Wed, 08 Apr 2026 15:09:59 -0700 (PDT)",
            "from kinako ([2400:2200:7f0:5ee8:dac6:2cde:760c:93f])\n by smtp.googlemail.com with ESMTPSA id\n d2e1a72fcca58-82cf9b60199sm19877723b3a.25.2026.04.08.15.09.54\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 08 Apr 2026 15:09:57 -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=1775686197; x=1776290997; 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=DjhnktMvV4h2xi4fiomyQIaVW6APY0LL/5Fn6Tn8jRU=;\n b=lDTG5uxfpKS3cb6/wQis6ykPY51Rn47GzkoohOOj2I9lCcNuU/P+7wKdInckG5amMT\n SwDC+VgQDgjdYtQtQEhJyNvck9pqJH/r5kWU3TnixpVDqXaqmRVOHvObfBPeLoSrp3Uj\n xFq9D/3tLWrRHdzWJpxs0qxpVQy/XFiv/I5sk=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775686197; x=1776290997;\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=DjhnktMvV4h2xi4fiomyQIaVW6APY0LL/5Fn6Tn8jRU=;\n b=WeISXqeiBX1PMLL9uocnIquKTgxYLufx//+plAZEmXKGhai1T+3K9Flgp0lgkIsGHZ\n B9tIizPk51yWTdzGzngoGTUyTwzMWGrcHtUBxwG7E9CUUUz6GjsvTlVN7BJaiq2Dbahn\n H+O6/Xgs2FWz/3hmkfmM1fohoDQ+VDYYPwchGcmOdZIV489dd5e5dCqSSw5XGTeVGUpk\n Jzawvaj2MLNMFHtq3+CUL8kyobifcvudjzi0IULc0boayrXSUyJqkn9bhub8qrc8auPi\n dT39PUYLkIurehTU4czDQ2/r8vXdsesWaPWU1xQoah/g69/mgxbjeXpetPhehV3OL4v5\n MAgw==",
        "X-Gm-Message-State": "AOJu0YwJjGj/m7AFkbRksKiYwsOTBnPLkDvRF8PZcB3LPjAzWgtP9SHe\n qY5HFOpTCQpX1CcadqpUjvkyVME3W7PhdkdNjvmFEwkCriEfutDOTBzm5x15yyWI64g=",
        "X-Gm-Gg": "AeBDiesUGqK3wF5W3UKy4OMqQRVFkrs4cUsUXvKAWa2mqk/dXSJmbq6RmxAVFw0Ui/9\n +q9gAeJLFdSQI2m9T5tK5c+rUWc405x5MiAoFwBkj3XQ+eixPu3h64DajAsFNfkw2TgrTMgs9QN\n DWza+v3kgJR8+jCJw0PVUrFQFSmC4It0jcHV5fMS1ieIVyaoQnIkWDrtApQNBQP3zvpwkDkxjJK\n XJCDnBbq2HTRgz18EBum+weralOytAmalq8kzJkeDN1iYp7qZLe40ydjM3MiBi/neIFwASwj+Xr\n Ap0lWFnvDzFRInwHxFMM5ccy4v7G3SXCmsicRvFmvV9x80H2BCYEC4Yz/hGrbM+BN5ou8SmzCxO\n 7Gur0YkUaeqAbBCxWmyREoMmJTN9F8tXOVLtwLwhzbxjUZf7A4iiOfi/lMXtJr5OdQgavqlL26Q\n dFaJhrjE8Wn0o4",
        "X-Received": "by 2002:a05:6a00:f86:b0:81f:5acb:55fc with SMTP id\n d2e1a72fcca58-82dd8ab8823mr849944b3a.10.1775686197594;\n Wed, 08 Apr 2026 15:09:57 -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 v3 3/5] virtio: mmio: Allow instantiation via platform data",
        "Date": "Thu,  9 Apr 2026 07:09:26 +0900",
        "Message-ID": "<20260408220928.3328551-4-daniel@thingy.jp>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20260408220928.3328551-1-daniel@thingy.jp>",
        "References": "<20260408220928.3328551-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 1cd737aca249..28b46ab66238 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": [
        "v3",
        "3/5"
    ]
}