get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1444225,
    "url": "http://patchwork.ozlabs.org/api/patches/1444225/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-13-git-send-email-bmeng.cn@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": "<1614244979-48216-13-git-send-email-bmeng.cn@gmail.com>",
    "list_archive_url": null,
    "date": "2021-02-25T09:22:33",
    "name": "[v3,12/38] lib: addr_map: Move address_map[] type to the header file",
    "commit_ref": "b56156331693856aceb76e6aa3d61e58f7ae8dd4",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "948624909be8292a8792df262bed46fdeb07801b",
    "submitter": {
        "id": 64981,
        "url": "http://patchwork.ozlabs.org/api/people/64981/?format=api",
        "name": "Bin Meng",
        "email": "bmeng.cn@gmail.com"
    },
    "delegate": {
        "id": 87636,
        "url": "http://patchwork.ozlabs.org/api/users/87636/?format=api",
        "username": "priyankajain",
        "first_name": "Priyanka",
        "last_name": "Jain",
        "email": "priyanka.jain@nxp.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-13-git-send-email-bmeng.cn@gmail.com/mbox/",
    "series": [
        {
            "id": 230985,
            "url": "http://patchwork.ozlabs.org/api/series/230985/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=230985",
            "date": "2021-02-25T09:22:22",
            "name": "ppc: qemu: Convert qemu-ppce500 to driver model and enable additional driver support",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/230985/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1444225/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1444225/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "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=<UNKNOWN>)",
            "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=20161025 header.b=L+IzGIJg;\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=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=\"L+IzGIJg\";\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=bmeng.cn@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 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4DmSDw6q8fz9s1l\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 25 Feb 2021 20:30:08 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id A8B8081C67;\n\tThu, 25 Feb 2021 10:29:58 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 85F868144F; Thu, 25 Feb 2021 10:24:22 +0100 (CET)",
            "from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com\n [IPv6:2a00:1450:4864:20::52a])\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 4ECD280F00\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 10:24:17 +0100 (CET)",
            "by mail-ed1-x52a.google.com with SMTP id h19so5901661edb.9\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 01:24:17 -0800 (PST)",
            "from pek-vx-bsp2.wrs.com\n (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180])\n by smtp.gmail.com with ESMTPSA id k22sm2987368edv.33.2021.02.25.01.24.13\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Thu, 25 Feb 2021 01:24:16 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references;\n bh=sPBpCbkK2yL0BO9SV713f+WoumlJFBaMoZROrUFp6Vg=;\n b=L+IzGIJgtFIIcIhOW8uoHjv6NrMVu4dG5srrbDba2deZbcUfPcftplvQ63lzieTesi\n IYN4Vx4g6yoJ2sh0DakeAXw7OY3XbcfKnX7wQKE8iOhQUZmXjxRqZtJzYuk1Y5THYj5F\n Atl713upZdFskb21/RKNJf8VEj4zlms7m4iVAh5LNIojT8gMZaj+AqgAofO0myrIaoSV\n oYISAcNbuFoBn8uFVgGeFAfU/l/XmA/qbmVZoceFsrYYOA5uRUeMEORUxRBkkfSuWe5v\n GQhSBuZmPBbCBUPlC505pXkdop5fFsSKYK91vhAzAqzt8FNzTe5aAg5GUKQvM+UWhJ1n\n 9QAg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references;\n bh=sPBpCbkK2yL0BO9SV713f+WoumlJFBaMoZROrUFp6Vg=;\n b=fGUDvO6PLoW7EPmmsHuXFcnENBNkNXJL/v+6aaZ0QWwUvk1rOnyCixqejsoqQKSDeg\n Ran6f+8cB9d5p3gJKPRR6OYFm/tWPnvcvtYeEd5mlOWPb71++oDE+XEoDqRF08wj15M3\n +ucXXxjZqmJ4/TgIM/8DLcwKG0cLyDW78jy5akL6IRHg52gA0y3r5Zemp3NZcvRwgENK\n cO/FAu7HgG0VhfId7dLRg97verFRaQPzh/6Pcj/6ji5qv7gZISiYo8DXhS2v6dEz+VKp\n WxotWIJA5B1cFAhjiM3xKnQeJZbMwwWRHTirtI242vsFIA7lET/rfWYb6/8XY/4nVrqa\n EvxA==",
        "X-Gm-Message-State": "AOAM531Gsypzx8TvIvqhRl28QlflVTL3VtLxjrNBSKvov15qR7/LSlA/\n TxK0KZbKHNIjMme/USGKk0w=",
        "X-Google-Smtp-Source": "\n ABdhPJxkfh+YnkTKxrwlBfXVOwv8P02OcJ+xJi8sCg49dATy8hcjasHhNLBEEayuq+OSlyLpJyzhYQ==",
        "X-Received": "by 2002:a05:6402:3133:: with SMTP id\n dd19mr1871894edb.337.1614245057050;\n Thu, 25 Feb 2021 01:24:17 -0800 (PST)",
        "From": "Bin Meng <bmeng.cn@gmail.com>",
        "To": "Simon Glass <sjg@chromium.org>, Alexander Graf <agraf@csgraf.de>,\n Priyanka Jain <priyanka.jain@nxp.com>",
        "Cc": "U-Boot Mailing List <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v3 12/38] lib: addr_map: Move address_map[] type to the header\n file",
        "Date": "Thu, 25 Feb 2021 17:22:33 +0800",
        "Message-Id": "<1614244979-48216-13-git-send-email-bmeng.cn@gmail.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>",
        "References": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.34",
        "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.102.4 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "At present address_map[] is static and its type is unknown to external\nmodules. In preparation to create a command to list its contents, this\npatch moves its type definition and declaration to the header file.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\nReviewed-by: Priyanka Jain <priyanka.jain@nxp.com>\n---\n\n(no changes since v1)\n\n include/addr_map.h | 8 ++++++++\n lib/addr_map.c     | 6 +-----\n 2 files changed, 9 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/include/addr_map.h b/include/addr_map.h\nindex 85e737d..55d3a6a 100644\n--- a/include/addr_map.h\n+++ b/include/addr_map.h\n@@ -8,6 +8,14 @@\n \n #include <asm/types.h>\n \n+struct addrmap {\n+\tphys_addr_t paddr;\n+\tphys_size_t size;\n+\tunsigned long vaddr;\n+};\n+\n+extern struct addrmap address_map[CONFIG_SYS_NUM_ADDR_MAP];\n+\n phys_addr_t addrmap_virt_to_phys(void *vaddr);\n void *addrmap_phys_to_virt(phys_addr_t paddr);\n void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr,\ndiff --git a/lib/addr_map.c b/lib/addr_map.c\nindex 09771f3..fb2ef40 100644\n--- a/lib/addr_map.c\n+++ b/lib/addr_map.c\n@@ -6,11 +6,7 @@\n #include <common.h>\n #include <addr_map.h>\n \n-static struct {\n-\tphys_addr_t paddr;\n-\tphys_size_t size;\n-\tunsigned long vaddr;\n-} address_map[CONFIG_SYS_NUM_ADDR_MAP];\n+struct addrmap address_map[CONFIG_SYS_NUM_ADDR_MAP];\n \n phys_addr_t addrmap_virt_to_phys(void * vaddr)\n {\n",
    "prefixes": [
        "v3",
        "12/38"
    ]
}