get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 812975,
    "url": "http://patchwork.ozlabs.org/api/patches/812975/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170912170725.29733-3-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-3-marek.vasut+renesas@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-12T17:07:22",
    "name": "[U-Boot,3/6] ARM: rmobile: Move HSUSB configuration to board on ULCB",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "1cd8461731fcebf837e60ad489bcf0a3758867b3",
    "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-3-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/812975/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/812975/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=\"JP9ge2bX\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xsBBY5WSDz9ryQ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 03:10:29 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 2C13DC22085; Tue, 12 Sep 2017 17:08:34 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 6AFC9C22018;\n\tTue, 12 Sep 2017 17:08:00 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 0C8A3C21D78; Tue, 12 Sep 2017 17:07:58 +0000 (UTC)",
            "from mail-wm0-f66.google.com (mail-wm0-f66.google.com\n\t[74.125.82.66])\n\tby lists.denx.de (Postfix) with ESMTPS id AFAB6C21C40\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 17:07:57 +0000 (UTC)",
            "by mail-wm0-f66.google.com with SMTP id 187so9490862wmn.0\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 10:07:57 -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.56\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 12 Sep 2017 10:07: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:cc:subject:date:message-id:in-reply-to:references;\n\tbh=52TCKTBmlbZz7OvjiRnMzbg/BWpIxgJuOL2G/Dn+82g=;\n\tb=JP9ge2bXg8Gyk5QhPhSLVlYue2g9iiQecbCPLbKUmCIL5pFyAHbBEjIdi7mEpWwh6v\n\t/VlOKcThrnvqEXAULPinq+QkBrJlut/ap9F3u3WT/ECjx+cf0AP4QPiECQyG2zhQfU25\n\t2pKV28AAj7QwRvr4YbzWgli61IhH48dw/ALHFcx0Trqw8xLyViRVjftPSMi/sZtmAYGD\n\t6doWFaTf732yBsZ7AIC+WTIWMrY0OPI5VNyciDgIA6syBw7oIlVA2mZjVc0GPNu6k1a4\n\tBlETvtSxH1rgwYaE9Jcya1su4yxO8jhN8/7MVtaXTFZFc+13U+jzUT/Rq0tZej00R9Gi\n\tH+jw==",
        "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=52TCKTBmlbZz7OvjiRnMzbg/BWpIxgJuOL2G/Dn+82g=;\n\tb=aKjstd5qlz+xheQtN4iBCJxO0hpfg2ixcNdbFAgPFttpvHod5OPVXDLdJJ1c3YAIZI\n\t5OomFceiITlctiPx7JBuJ46orBpaF/JY2hFpRcRfYU0jDkcyrOq36ZsJYB3bAnGKfxin\n\tDKkg2fA4yZ2aF3nFIYsX756EG5KxTz/HzxQKqpauJalQQuscujmiaCtCOokjm9ciBfp3\n\tMpCiEuYynI4SYNip6Eg28/NVcdtZyY4qxsY/WU4PHZp5yYcw9w1e/5Y4IDgAQAhldFfR\n\tuG9Gw2UP4LPcMEXyoaBNQx/H8cI6YhJzz9mTYsNqS6YkwyK8d3wrzPt8F5J9SiHK4k5T\n\tiSAA==",
        "X-Gm-Message-State": "AHPjjUi5To7+6dGdr24H2QusdOgc6KljvVEWh+xSOWIWikbMl/iI0aNy\n\thK7mPg6Hv/bnWfFW7OKq90yYECMk",
        "X-Google-Smtp-Source": "AOwi7QD5jhiFWyqowS6SZOfmSICTVAnjSQhSrihNvcKHjeG1npj4b1fuiN1dSl1fNouwUmdJpWKc3w==",
        "X-Received": "by 10.28.209.14 with SMTP id i14mr190999wmg.156.1505236077099;\n\tTue, 12 Sep 2017 10:07:57 -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:22 +0200",
        "Message-Id": "<20170912170725.29733-3-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 3/6] ARM: rmobile: Move HSUSB configuration to\n\tboard on ULCB",
        "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/ulcb/ulcb.c | 16 ++++++++++++++++\n 1 file changed, 16 insertions(+)",
    "diff": "diff --git a/board/renesas/ulcb/ulcb.c b/board/renesas/ulcb/ulcb.c\nindex dc23228f4f..578b14be7b 100644\n--- a/board/renesas/ulcb/ulcb.c\n+++ b/board/renesas/ulcb/ulcb.c\n@@ -53,6 +53,7 @@ void s_init(void)\n #define SD0_MSTP314\t\tBIT(14)\n #define SD1_MSTP313\t\tBIT(13)\n #define SD2_MSTP312\t\tBIT(12)\t/* either MMC0 */\n+#define HSUSB_MSTP704\t\tBIT(4)\t/* HSUSB */\n \n #define SD0CKCR\t\t\t0xE6150074\n #define SD1CKCR\t\t\t0xE6150078\n@@ -90,6 +91,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@@ -105,6 +113,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",
        "3/6"
    ]
}