get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 624187,
    "url": "http://patchwork.ozlabs.org/api/patches/624187/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-16-git-send-email-sven.eckelmann@open-mesh.com/",
    "project": {
        "id": 45,
        "url": "http://patchwork.ozlabs.org/api/projects/45/?format=api",
        "name": "OpenWrt development",
        "link_name": "openwrt",
        "list_id": "openwrt-devel.lists.openwrt.org",
        "list_email": "openwrt-devel@lists.openwrt.org",
        "web_url": "http://openwrt.org/",
        "scm_url": "git://git.openwrt.org/openwrt.git",
        "webscm_url": "https://dev.openwrt.org/browser",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1463682077-19339-16-git-send-email-sven.eckelmann@open-mesh.com>",
    "list_archive_url": null,
    "date": "2016-05-19T18:20:59",
    "name": "[OpenWrt-Devel,CC,16/34] ar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR900",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "0fa8919be7f1e5d287badc21e79cbe136d1f091d",
    "submitter": {
        "id": 68437,
        "url": "http://patchwork.ozlabs.org/api/people/68437/?format=api",
        "name": "Sven Eckelmann",
        "email": "sven.eckelmann@open-mesh.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-16-git-send-email-sven.eckelmann@open-mesh.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/624187/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/624187/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<openwrt-devel-bounces@lists.openwrt.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from arrakis.dune.hu (caladan.dune.hu [78.24.191.180])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3r9fg167smz9sdg\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 May 2016 04:27:09 +1000 (AEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 70602B92054;\n\tThu, 19 May 2016 20:22:39 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP;\n\tThu, 19 May 2016 20:22:39 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 34808B91F80\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:21:59 +0200 (CEST)",
            "from mail-wm0-f48.google.com (mail-wm0-f48.google.com\n\t[74.125.82.48]) by arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:21:59 +0200 (CEST)",
            "by mail-wm0-f48.google.com with SMTP id w143so436380wmw.0\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 11:21:59 -0700 (PDT)",
            "from sven-desktop.home.narfation.org\n\t(p579E6DC9.dip0.t-ipconnect.de. [87.158.109.201])\n\tby smtp.gmail.com with ESMTPSA id\n\tcz3sm15686419wjb.14.2016.05.19.11.21.58\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 19 May 2016 11:21:58 -0700 (PDT)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=open-mesh-com.20150623.gappssmtp.com\n\theader.i=@open-mesh-com.20150623.gappssmtp.com\n\theader.b=NtovXP0R; dkim-atps=neutral",
        "X-Spam-Checker-Version": "SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.1",
        "X-policyd-weight": "using cached result; rate:hard: -7",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=open-mesh-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=+Ye/nxezCjAqkdeaPf3dLc2eIo628tDAPvcxffiVStA=;\n\tb=NtovXP0Re/MHCKmx8f6A+ZNOKIeOIVZy/jsZhFcuqzQle+mCH1ld6exMZjMLbPIL3k\n\tQ9eFpNuW7+rRp0xcOPV9s0EYZCrDpKpg4/eCDbdCrrn95uURncf+4kAzI202uVcBjbRA\n\teL9P8k0eA6VZkkmffngxRhCDIHgUSYnTUi5k++F4rnuGVH8zslxCCtSdSOqZJVGrz1QP\n\t1n7K2f6ei9pwMafKnQjKHkz9DjI+1Ak/2aIQB3ygyM2OVBOM2/KvuDw7fEAekxi1DOfH\n\ttkNxnsxcaaJYIJwIbHOADzHY+tXY3v88IikizlFdyDr/kl5vGtT4kRof3PAt+Q46cVz+\n\tpmnw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=+Ye/nxezCjAqkdeaPf3dLc2eIo628tDAPvcxffiVStA=;\n\tb=gQTz3ojKhjrrlrn6z5XbuVK+Vd/XsV/k8/yAFOqFnP/tb/372YkSuM5cxUtficMRtg\n\tJ2xMP5GLggNLWtTj+62eQM+orQCY2X/3M89BP1Sikq140ICIOL8C+018E0XjwgDxfQUB\n\t60tGA4uHrjMP1FVAfoE8lMg1Cb/pJKiCxevrSeW0R8AjXMCaO0AAcjkS9EYvSzTfDVQu\n\ty0BFkzE5tMwBuLGNbC+Fpa44gSvq9TQijtIazLfAShLWBcfrbVOOPTlfnk2n8JiqKZkP\n\t3oBmv4hPEj/0PibhEVyTHuTO78JkJPYsLZxSwh3R/HYh7UyNbmIl6MqH2N60mglslw4P\n\tNmuQ==",
        "X-Gm-Message-State": "AOPr4FXNR/IuaTGSJTkGJqugaupex1UVjTPXsi9F8YJrCeoErmzbIH4QEGc0g/Dnz9+iJ/8a",
        "X-Received": "by 10.194.85.161 with SMTP id i1mr16130655wjz.95.1463682118815; \n\tThu, 19 May 2016 11:21:58 -0700 (PDT)",
        "From": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "To": "openwrt-devel@lists.openwrt.org",
        "Date": "Thu, 19 May 2016 20:20:59 +0200",
        "Message-Id": "<1463682077-19339-16-git-send-email-sven.eckelmann@open-mesh.com>",
        "X-Mailer": "git-send-email 2.8.1",
        "In-Reply-To": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "References": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "Subject": "[OpenWrt-Devel] [PATCH CC 16/34] ar71xx: Use private version of\n\tath79_setup_qca955x_eth_cfg for MR900",
        "X-BeenThere": "openwrt-devel@lists.openwrt.org",
        "X-Mailman-Version": "2.1.20",
        "Precedence": "list",
        "List-Id": "OpenWrt Development List <openwrt-devel.lists.openwrt.org>",
        "List-Unsubscribe": "<https://lists.openwrt.org/cgi-bin/mailman/options/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.openwrt.org/pipermail/openwrt-devel/>",
        "List-Post": "<mailto:openwrt-devel@lists.openwrt.org>",
        "List-Help": "<mailto:openwrt-devel-request@lists.openwrt.org?subject=help>",
        "List-Subscribe": "<https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>",
        "Cc": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "openwrt-devel-bounces@lists.openwrt.org",
        "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>"
    },
    "content": "The MR900 must unset some bits in ETH_CFG which were set by u-boot to work\ncorrectly under OpenWrt. But the global function\nath79_setup_qca955x_eth_cfg will not unset all of them to increase the\nbackward compatiblity with older mach-* files. A private (simplified)\nversion for MR900 can be used instead.\n\nSigned-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>\n\nBackport of r49069\n---\n .../ar71xx/files/arch/mips/ath79/mach-mr900.c      | 24 +++++++++++++++++++++-\n 1 file changed, 23 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr900.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr900.c\nindex 3634bf0..b439f58 100644\n--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr900.c\n+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr900.c\n@@ -110,6 +110,28 @@ static struct mdio_board_info mr900_mdio0_info[] = {\n \t},\n };\n \n+static void __init mr900_setup_qca955x_eth_cfg(u32 mask,\n+\t\t\t\t\t       unsigned int rxd,\n+\t\t\t\t\t       unsigned int rxdv,\n+\t\t\t\t\t       unsigned int txd,\n+\t\t\t\t\t       unsigned int txe)\n+{\n+\tvoid __iomem *base;\n+\tu32 t;\n+\n+\tbase = ioremap(QCA955X_GMAC_BASE, QCA955X_GMAC_SIZE);\n+\n+\tt = mask;\n+\tt |= rxd << QCA955X_ETH_CFG_RXD_DELAY_SHIFT;\n+\tt |= rxdv << QCA955X_ETH_CFG_RDV_DELAY_SHIFT;\n+\tt |= txd << QCA955X_ETH_CFG_TXD_DELAY_SHIFT;\n+\tt |= txe << QCA955X_ETH_CFG_TXE_DELAY_SHIFT;\n+\n+\t__raw_writel(t, base + QCA955X_GMAC_REG_ETH_CFG);\n+\n+\tiounmap(base);\n+}\n+\n static void __init mr900_setup(void)\n {\n \tu8 *art = (u8 *)KSEG1ADDR(0x1fff0000);\n@@ -139,7 +161,7 @@ static void __init mr900_setup(void)\n \t}\n \tpdata->use_eeprom = true;\n \n-\tath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN);\n+\tmr900_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN, 3, 3, 0, 0);\n \tath79_register_mdio(0, 0x0);\n \n \tmdiobus_register_board_info(mr900_mdio0_info,\n",
    "prefixes": [
        "OpenWrt-Devel",
        "CC",
        "16/34"
    ]
}