get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 812916,
    "url": "http://patchwork.ozlabs.org/api/patches/812916/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1505230349-5412-5-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-5-git-send-email-philipp.tomsich@theobroma-systems.com>",
    "list_archive_url": null,
    "date": "2017-09-12T15:32:27",
    "name": "[U-Boot,RESEND,4/6] usb: dwc2: convert to livetree",
    "commit_ref": "a9d3037a8e4f045434184623eadbe86fa3844b28",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "13fcdf278a6a186a46000c8813b41b83f861ff6f",
    "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-5-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/812916/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/812916/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 3xs8304F0Mz9ryT\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 01:33:48 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 68709C22254; Tue, 12 Sep 2017 15:33:24 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A67DDC2225A;\n\tTue, 12 Sep 2017 15:32:47 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 85C30C22231; 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 03AF2C221A4\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 1drnAx-0007X2-OP; Tue, 12 Sep 2017 17:32:35 +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:27 +0200",
        "Message-Id": "<1505230349-5412-5-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 4/6] usb: dwc2: 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 DWC2 USB driver to support a live tree.\n\nSigned-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>\n---\n\n drivers/usb/host/dwc2.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c\nindex 64c42ac..0ed72d5 100644\n--- a/drivers/usb/host/dwc2.c\n+++ b/drivers/usb/host/dwc2.c\n@@ -1245,7 +1245,7 @@ static int dwc2_usb_ofdata_to_platdata(struct udevice *dev)\n \tstruct dwc2_priv *priv = dev_get_priv(dev);\n \tfdt_addr_t addr;\n \n-\taddr = devfdt_get_addr(dev);\n+\taddr = dev_read_addr(dev);\n \tif (addr == FDT_ADDR_T_NONE)\n \t\treturn -EINVAL;\n \tpriv->regs = (struct dwc2_core_regs *)addr;\n",
    "prefixes": [
        "U-Boot",
        "RESEND",
        "4/6"
    ]
}