get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 812919,
    "url": "http://patchwork.ozlabs.org/api/patches/812919/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1505230349-5412-3-git-send-email-philipp.tomsich@theobroma-systems.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": "<1505230349-5412-3-git-send-email-philipp.tomsich@theobroma-systems.com>",
    "list_archive_url": null,
    "date": "2017-09-12T15:32:25",
    "name": "[U-Boot,RESEND,2/6] rockchip: xhci: Convert to livetree",
    "commit_ref": "32c8eee37fcb88d372410952d3ab88bcf5fdf7e7",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "80fb134822f261bcd6d67d2f44e187ab282d070c",
    "submitter": {
        "id": 53488,
        "url": "http://patchwork.ozlabs.org/api/people/53488/?format=api",
        "name": "Philipp Tomsich",
        "email": "philipp.tomsich@theobroma-systems.com"
    },
    "delegate": {
        "id": 1699,
        "url": "http://patchwork.ozlabs.org/api/users/1699/?format=api",
        "username": "marex",
        "first_name": "Marek",
        "last_name": "Vasut",
        "email": "marek.vasut@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1505230349-5412-3-git-send-email-philipp.tomsich@theobroma-systems.com/mbox/",
    "series": [
        {
            "id": 2728,
            "url": "http://patchwork.ozlabs.org/api/series/2728/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=2728",
            "date": "2017-09-12T15:32:24",
            "name": "rockchip: enable live tree on the RK3399 and validate on the RK3399-Q7",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/2728/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/812919/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/812919/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>)",
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xs85j0VCGz9s7f\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 01:36:08 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid B5C52C221C5; Tue, 12 Sep 2017 15:34:24 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id D74DCC2206D;\n\tTue, 12 Sep 2017 15:32:56 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 22E88C2224C; Tue, 12 Sep 2017 15:32:39 +0000 (UTC)",
            "from mail.theobroma-systems.com (vegas.theobroma-systems.com\n\t[144.76.126.164])\n\tby lists.denx.de (Postfix) with ESMTPS id 0F2E5C22246\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 15:32:39 +0000 (UTC)",
            "from [86.59.122.178] (port=59697 helo=android.lan)\n\tby mail.theobroma-systems.com with esmtpsa\n\t(TLS1.2:RSA_AES_128_CBC_SHA256:128)\n\t(Exim 4.80) (envelope-from <philipp.tomsich@theobroma-systems.com>)\n\tid 1drnAw-0007X2-Pi; Tue, 12 Sep 2017 17:32:34 +0200"
        ],
        "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=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "From": "Philipp Tomsich <philipp.tomsich@theobroma-systems.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Tue, 12 Sep 2017 17:32:25 +0200",
        "Message-Id": "<1505230349-5412-3-git-send-email-philipp.tomsich@theobroma-systems.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1505230349-5412-1-git-send-email-philipp.tomsich@theobroma-systems.com>",
        "References": "<1505230349-5412-1-git-send-email-philipp.tomsich@theobroma-systems.com>",
        "Cc": "Marek Vasut <marex@denx.de>,\n\tKlaus Goger <klaus.goger@theobroma-systems.com>",
        "Subject": "[U-Boot] [RESEND PATCH 2/6] rockchip: xhci: Convert to livetree",
        "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": "Update the Rockchip xhci wrapper driver to support a live device tree.\n\nSigned-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>\n---\n\n drivers/usb/host/xhci-rockchip.c | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/usb/host/xhci-rockchip.c b/drivers/usb/host/xhci-rockchip.c\nindex ec55f4e..ca3abff 100644\n--- a/drivers/usb/host/xhci-rockchip.c\n+++ b/drivers/usb/host/xhci-rockchip.c\n@@ -6,8 +6,6 @@\n  */\n #include <common.h>\n #include <dm.h>\n-#include <fdtdec.h>\n-#include <libfdt.h>\n #include <malloc.h>\n #include <usb.h>\n #include <watchdog.h>\n@@ -46,7 +44,7 @@ static int xhci_usb_ofdata_to_platdata(struct udevice *dev)\n \t/*\n \t * Get the base address for XHCI controller from the device node\n \t */\n-\tplat->hcd_base = devfdt_get_addr(dev);\n+\tplat->hcd_base = dev_read_addr(dev);\n \tif (plat->hcd_base == FDT_ADDR_T_NONE) {\n \t\terror(\"Can't get the XHCI register base address\\n\");\n \t\treturn -ENXIO;\n",
    "prefixes": [
        "U-Boot",
        "RESEND",
        "2/6"
    ]
}