get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 804516,
    "url": "http://patchwork.ozlabs.org/api/patches/804516/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1503414919-30820-2-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": "<1503414919-30820-2-git-send-email-bmeng.cn@gmail.com>",
    "list_archive_url": null,
    "date": "2017-08-22T15:15:06",
    "name": "[U-Boot,01/14] nvme: Remove useless defines",
    "commit_ref": "abe25db611039ede49357275561a74ee51e0e474",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "70590497b5f3fc265dfe152a5d74f295603c34e2",
    "submitter": {
        "id": 64981,
        "url": "http://patchwork.ozlabs.org/api/people/64981/?format=api",
        "name": "Bin Meng",
        "email": "bmeng.cn@gmail.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1503414919-30820-2-git-send-email-bmeng.cn@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/804516/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/804516/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\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Z2MlaQ/m\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xcDYG0kFVz9sR9\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 23 Aug 2017 01:11:46 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid AF400C21E39; Tue, 22 Aug 2017 15:11:16 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id CF721C21EC3;\n\tTue, 22 Aug 2017 15:11:05 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid CBF01C21EBD; Tue, 22 Aug 2017 15:11:00 +0000 (UTC)",
            "from mail-it0-f68.google.com (mail-it0-f68.google.com\n\t[209.85.214.68])\n\tby lists.denx.de (Postfix) with ESMTPS id BD912C21C40\n\tfor <u-boot@lists.denx.de>; Tue, 22 Aug 2017 15:10:58 +0000 (UTC)",
            "by mail-it0-f68.google.com with SMTP id 77so11826821itj.4\n\tfor <u-boot@lists.denx.de>; Tue, 22 Aug 2017 08:10:58 -0700 (PDT)",
            "from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139]) by smtp.gmail.com with ESMTPSA id\n\ta189sm5182572itd.5.2017.08.22.08.10.56\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 22 Aug 2017 08:10:56 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:subject:date:message-id:in-reply-to:references;\n\tbh=47j4KEQ32+6+Lz53eXMfgaGSTEPTzl41BtuWk9ck2Lg=;\n\tb=Z2MlaQ/mCYQxrmvip85Ld1ZsTS24zBSqvBzXcBlUhX0sGH+dAotl9A2FAEfkPjAA+0\n\tCtzwuS9FyYY2EekmSPvM+GbgPvMaortu35ckA7BRkOZ7GyXgMd4M2PbOM+gXwbrhGjk4\n\tkMju8MyMAq8lOqcge4gnjqgXr9pEvoty1QwS4VqIm9QNtJcSjpdAuJhqpGTJMy7zfGsd\n\tbVHOSZUD66cZgO1wduxHY8036ADozO3xOyqHVWbPYYwwkX1ymoV6dVhPEDEcgw8knXY2\n\tvsRo2xL3JDcDXE/9IpfnYf3zoZQnnxjZ0tzs+BXe2a3GnpuYxxu6XdN/UgPGeilmrrBl\n\tkzhA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=47j4KEQ32+6+Lz53eXMfgaGSTEPTzl41BtuWk9ck2Lg=;\n\tb=RzIsKCZ1LGWKhu1crrtNi+2ZRnA4ddWEmbCCnMS1tcoewkQ6yFUWyQCjtIPE67Xo7I\n\tCEnvwjNiNzooPRaARMRfbm+RJxKvkrGDwifpBGih7UYXKl9WsiGplTf82+cRt8qf3/eN\n\tRDn+104WzHDFALD0S0JiumQgFpQXn/oOdYeD0oihTKyR2/TPuEsLTgpPneiTk0Ehr2/0\n\tJdz7Qa1hPjY9umSoze1Y11SSo8h9MsOc7v40qKDz3EbbsyIeQubQH2s7CNyIPQuxwTPm\n\tUD1VDyekUNMIWSrGhqnYP4Y8GDLIUR0StDMB36wYgBQ2NYWio23LdEeayuB/R983OYkp\n\tWskA==",
        "X-Gm-Message-State": "AHYfb5gVEMstybl/HGjOkTqWP9wEMfJscq3jOdndGs/y7+AKMaU62gUi\n\twsOJOm7ycgOkAQ==",
        "X-Received": "by 10.36.82.5 with SMTP id d5mr297510itb.129.1503414657694;\n\tTue, 22 Aug 2017 08:10:57 -0700 (PDT)",
        "From": "Bin Meng <bmeng.cn@gmail.com>",
        "To": "Tom Rini <trini@konsulko.com>, U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Tue, 22 Aug 2017 08:15:06 -0700",
        "Message-Id": "<1503414919-30820-2-git-send-email-bmeng.cn@gmail.com>",
        "X-Mailer": "git-send-email 1.7.9.5",
        "In-Reply-To": "<1503414919-30820-1-git-send-email-bmeng.cn@gmail.com>",
        "References": "<1503414919-30820-1-git-send-email-bmeng.cn@gmail.com>",
        "Subject": "[U-Boot] [PATCH 01/14] nvme: Remove useless defines",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://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\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "These are leftover when the driver was ported from Linux and are not\nused by the U-Boot driver.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\n drivers/nvme/nvme.h | 60 -----------------------------------------------------\n 1 file changed, 60 deletions(-)",
    "diff": "diff --git a/drivers/nvme/nvme.h b/drivers/nvme/nvme.h\nindex b7fdd0b..267884e 100644\n--- a/drivers/nvme/nvme.h\n+++ b/drivers/nvme/nvme.h\n@@ -528,42 +528,6 @@ struct nvme_completion {\n \t__le16\tstatus;\t\t/* did the command fail, and if so, why? */\n };\n \n-struct nvme_user_io {\n-\t__u8\topcode;\n-\t__u8\tflags;\n-\t__u16\tcontrol;\n-\t__u16\tnblocks;\n-\t__u16\trsvd;\n-\t__u64\tmetadata;\n-\t__u64\taddr;\n-\t__u64\tslba;\n-\t__u32\tdsmgmt;\n-\t__u32\treftag;\n-\t__u16\tapptag;\n-\t__u16\tappmask;\n-};\n-\n-struct nvme_passthru_cmd {\n-\t__u8\topcode;\n-\t__u8\tflags;\n-\t__u16\trsvd1;\n-\t__u32\tnsid;\n-\t__u32\tcdw2;\n-\t__u32\tcdw3;\n-\t__u64\tmetadata;\n-\t__u64\taddr;\n-\t__u32\tmetadata_len;\n-\t__u32\tdata_len;\n-\t__u32\tcdw10;\n-\t__u32\tcdw11;\n-\t__u32\tcdw12;\n-\t__u32\tcdw13;\n-\t__u32\tcdw14;\n-\t__u32\tcdw15;\n-\t__u32\ttimeout_ms;\n-\t__u32\tresult;\n-};\n-\n /*\n  * Registers should always be accessed with double word or quad word\n  * accesses. Registers with 64-bit address pointers should be written\n@@ -644,11 +608,8 @@ struct nvme_dev {\n \tstruct list_head node;\n \tstruct nvme_queue **queues;\n \tu32 __iomem *dbs;\n-\tunsigned int cardnum;\n \tstruct udevice *pdev;\n-\tpci_dev_t pci_dev;\n \tint instance;\n-\tuint8_t *hw_addr;\n \tunsigned queue_count;\n \tunsigned online_queues;\n \tunsigned max_qid;\n@@ -657,16 +618,12 @@ struct nvme_dev {\n \tu32 ctrl_config;\n \tstruct nvme_bar __iomem *bar;\n \tstruct list_head namespaces;\n-\tconst char *name;\n \tchar serial[20];\n \tchar model[40];\n \tchar firmware_rev[8];\n \tu32 max_transfer_shift;\n \tu32 stripe_size;\n \tu32 page_size;\n-\tu16 oncs;\n-\tu16 abort_limit;\n-\tu8 event_limit;\n \tu8 vwc;\n \tu64 *prp_pool;\n \tu32 prp_entry_num;\n@@ -681,21 +638,6 @@ struct nvme_info {\n };\n \n /*\n- * The nvme_iod describes the data in an I/O, including the list of PRP\n- * entries.  You can't see it in this data structure because C doesn't let\n- * me express that.  Use nvme_alloc_iod to ensure there's enough space\n- * allocated to store the PRP list.\n- */\n-struct nvme_iod {\n-\tunsigned long private;\t/* For the use of the submitter of the I/O */\n-\tint npages;\t\t/* In the PRP list. 0 means small pool in use */\n-\tint offset;\t\t/* Of PRP list */\n-\tint nents;\t\t/* Used in scatterlist */\n-\tint length;\t\t/* Of data, in bytes */\n-\tdma_addr_t first_dma;\n-};\n-\n-/*\n  * An NVM Express namespace is equivalent to a SCSI LUN.\n  * Each namespace is operated as an independent \"device\".\n  */\n@@ -705,9 +647,7 @@ struct nvme_ns {\n \tunsigned ns_id;\n \tint devnum;\n \tint lba_shift;\n-\tu16 ms;\n \tu8 flbas;\n-\tu8 pi_type;\n \tu64 mode_select_num_blocks;\n \tu32 mode_select_block_len;\n };\n",
    "prefixes": [
        "U-Boot",
        "01/14"
    ]
}