get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 812972,
    "url": "http://patchwork.ozlabs.org/api/patches/812972/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170912170725.29733-2-marek.vasut+renesas@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": "<20170912170725.29733-2-marek.vasut+renesas@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-12T17:07:21",
    "name": "[U-Boot,2/6] ARM: rmobile: Move HSUSB configuration to board on Salvator-X",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9aac6bc84424ac985c68ffe41683b71f4a433dee",
    "submitter": {
        "id": 1124,
        "url": "http://patchwork.ozlabs.org/api/people/1124/?format=api",
        "name": "Marek Vasut",
        "email": "marek.vasut@gmail.com"
    },
    "delegate": {
        "id": 1750,
        "url": "http://patchwork.ozlabs.org/api/users/1750/?format=api",
        "username": "iwamatsu",
        "first_name": "Nobuhiro",
        "last_name": "Iwamatsu",
        "email": "iwamatsu@nigauri.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170912170725.29733-2-marek.vasut+renesas@gmail.com/mbox/",
    "series": [
        {
            "id": 2744,
            "url": "http://patchwork.ozlabs.org/api/series/2744/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=2744",
            "date": "2017-09-12T17:07:21",
            "name": "[U-Boot,1/6] ARM: rmobile: dts: Add EHCI USB nodes to r8a7796",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/2744/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/812972/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/812972/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=\"lkcyKfCl\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xsB7n5P75z9s82\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 03:08:05 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 7A8BCC2202D; Tue, 12 Sep 2017 17:08:00 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 81DF9C21D78;\n\tTue, 12 Sep 2017 17:07:58 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid E7885C21DCF; Tue, 12 Sep 2017 17:07:56 +0000 (UTC)",
            "from mail-wm0-f68.google.com (mail-wm0-f68.google.com\n\t[74.125.82.68])\n\tby lists.denx.de (Postfix) with ESMTPS id 8B9E2C21D78\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 17:07:56 +0000 (UTC)",
            "by mail-wm0-f68.google.com with SMTP id r136so354464wmf.3\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 10:07:56 -0700 (PDT)",
            "from kurokawa.lan (ip-86-49-107-50.net.upcbroadband.cz.\n\t[86.49.107.50]) by smtp.gmail.com with ESMTPSA id\n\tv82sm17241085wmd.44.2017.09.12.10.07.54\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 12 Sep 2017 10:07:55 -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:cc:subject:date:message-id:in-reply-to:references;\n\tbh=C2m/FgvRfU6OGInBFTHyhcp+rVILK3PpVDlags+trqc=;\n\tb=lkcyKfCljSWI0+fXYKSFA8094mByFlDh2XxMSZZ0nOtx4Cpk+skM+hXEH1mvzr0sQW\n\tpknoQ13qBmrALlf40EIE4FFlrZWvTxKpa2uZ6yjs/CMW9LYxAZ6eEPl+d+NUEMnBbT2/\n\tFGdgRELX8p8HA5QVHO9b1isvg+XACX3St+lWGBUYoNA8y/qRuYWNSnqXwSWgVVECUn4l\n\t3gm5IPtelBOYrC4k0TWIWfXn9FQgla2uhyzaFx/jzVS5UJC4kuziCtc9tg7Au0HnPEAi\n\tkPkuciRiPHXDofcC/d1+BInE2pchqDmNLfibxpCtamQ+lkhSSSVjs7kow20GNCAgSOuJ\n\t+Hmg==",
        "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:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=C2m/FgvRfU6OGInBFTHyhcp+rVILK3PpVDlags+trqc=;\n\tb=AsSJ1i8yo1e4desAgna5XZ3ej+3v2j4sh2Bkph9OBpRi41UKm+jl/x6MSsTcrRbbTW\n\tbRS4iY3I0/2Rg/CZZ9pnkLiYIPkjJOzQo0mcf7Pwaffwp2iOCnDuQJuyF9/7gQ/PUBhf\n\tqxnfNv7giqgPUEzQ/sCmTWzoBJxHLqUu3H3K5kHbKJGpdnUqMF7EhcREtZcG/h0vwaCw\n\tjxUFtbEqNVrrAcxwUyy0DNrcSj3/paumCCLUgBwGWj9ROU5yggoY6eh2ATii3uH0MsOc\n\tN9TsyyBB1eIdEjUFB0M+YEV3Z/ycHdy9zO+nmLipQGXcggGFlr04Jij6YvxKPG7HZ2n6\n\tnRHg==",
        "X-Gm-Message-State": "AHPjjUg909Z9A816wnwZJgeZqfO/wxUesMr/aGLYp9ZmMjrbieWROUWy\n\tbCzhc1543TXnCas8pTRCq6ysiDFC",
        "X-Google-Smtp-Source": "AOwi7QAwSoWTptbzFETwCt4zrFaFbg5W4mh0xTlhCcV95FB4zjBNwEMYhv7IbL+NfuB2RNJ6O27DjQ==",
        "X-Received": "by 10.28.151.200 with SMTP id z191mr209528wmd.115.1505236076020; \n\tTue, 12 Sep 2017 10:07:56 -0700 (PDT)",
        "From": "Marek Vasut <marek.vasut@gmail.com>",
        "X-Google-Original-From": "Marek Vasut <marek.vasut+renesas@gmail.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Tue, 12 Sep 2017 19:07:21 +0200",
        "Message-Id": "<20170912170725.29733-2-marek.vasut+renesas@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170912170725.29733-1-marek.vasut+renesas@gmail.com>",
        "References": "<20170912170725.29733-1-marek.vasut+renesas@gmail.com>",
        "Cc": "Marek Vasut <marek.vasut+renesas@gmail.com>",
        "Subject": "[U-Boot] [PATCH 2/6] ARM: rmobile: Move HSUSB configuration to\n\tboard on Salvator-X",
        "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": "In order to use ehci-generic driver, move the configuration of HSUSB\nblock into the board file. This configuration should not have been in\nthe Gen3 EHCI USB driver in the first place, so move it to the board\nfile until there is a proper infrastructure and driver for the HSUSB\nblock.\n\nSigned-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\nCc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>\n---\n board/renesas/salvator-x/salvator-x.c | 16 ++++++++++++++++\n 1 file changed, 16 insertions(+)",
    "diff": "diff --git a/board/renesas/salvator-x/salvator-x.c b/board/renesas/salvator-x/salvator-x.c\nindex e260117802..37fcbbd448 100644\n--- a/board/renesas/salvator-x/salvator-x.c\n+++ b/board/renesas/salvator-x/salvator-x.c\n@@ -55,6 +55,7 @@ void s_init(void)\n #define SD1_MSTP313\t\tBIT(13)\n #define SD2_MSTP312\t\tBIT(12)\t/* either MMC0 */\n #define SD3_MSTP311\t\tBIT(11)\t/* either MMC1 */\n+#define HSUSB_MSTP704\t\tBIT(4)\t/* HSUSB */\n \n #define SD0CKCR\t\t\t0xE6150074\n #define SD1CKCR\t\t\t0xE6150078\n@@ -92,6 +93,13 @@ int board_early_init_f(void)\n /* -/W 32 Power resume control register 2 (3DG) */\n #define\tSYSC_PWRONCR2\t0xE618010C\n \n+/* HSUSB block registers */\n+#define HSUSB_REG_LPSTS\t\t\t0xE6590102\n+#define HSUSB_REG_LPSTS_SUSPM_NORMAL\tBIT(14)\n+#define HSUSB_REG_UGCTRL2\t\t0xE6590184\n+#define HSUSB_REG_UGCTRL2_USB0SEL\t0x30\n+#define HSUSB_REG_UGCTRL2_USB0SEL_EHCI\t0x10\n+\n int board_init(void)\n {\n \t/* adress of boot parameters */\n@@ -116,6 +124,14 @@ int board_init(void)\n \t/* USB1 pull-up */\n \tsetbits_le32(PFC_PUEN6, PUEN_USB1_OVC | PUEN_USB1_PWEN);\n \n+\t/* Configure the HSUSB block */\n+\tmstp_clrbits_le32(MSTPSR7, SMSTPCR7, HSUSB_MSTP704);\n+\t/* Choice USB0SEL */\n+\tclrsetbits_le32(HSUSB_REG_UGCTRL2, HSUSB_REG_UGCTRL2_USB0SEL,\n+\t\t\tHSUSB_REG_UGCTRL2_USB0SEL_EHCI);\n+\t/* low power status */\n+\tsetbits_le16(HSUSB_REG_LPSTS, HSUSB_REG_LPSTS_SUSPM_NORMAL);\n+\n #ifdef CONFIG_RENESAS_RAVB\n \t/* EtherAVB Enable */\n \t/* GPSR2 */\n",
    "prefixes": [
        "U-Boot",
        "2/6"
    ]
}