get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 624188,
    "url": "http://patchwork.ozlabs.org/api/patches/624188/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-17-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-17-git-send-email-sven.eckelmann@open-mesh.com>",
    "list_archive_url": null,
    "date": "2016-05-19T18:21:00",
    "name": "[OpenWrt-Devel,CC,17/34] ar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR1750",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d3d994000b5526a7c7dfc9c625b3bf485fe3b3bd",
    "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-17-git-send-email-sven.eckelmann@open-mesh.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/624188/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/624188/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 3r9fgM6hywz9sdg\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 May 2016 04:27:27 +1000 (AEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id CE464B92060;\n\tThu, 19 May 2016 20:22:42 +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:42 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 9F441B91FCD\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:22:00 +0200 (CEST)",
            "from mail-wm0-f43.google.com (mail-wm0-f43.google.com\n\t[74.125.82.43]) by arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:22:00 +0200 (CEST)",
            "by mail-wm0-f43.google.com with SMTP id w143so437098wmw.0\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 11:22:00 -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 e8sm527891wma.2.2016.05.19.11.21.59\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 19 May 2016 11:21:59 -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=vQBwplFl; 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=fUeRYxiLkEkXKvfH/fu0I2EtkofuWyh81fzDGq9uTwY=;\n\tb=vQBwplFlOP0utd5zTDlILctKl9zKOh8N0Y5D/txj1dPoo8JLGUo3NqBrrniB3nM3Wi\n\t3h3BCnzurfhRbQb/PIQ6iXwIVOXLECXNnX/W3HwM8fqyhgdbJa0BJWQM0eiPjN78/aOH\n\tVX64joj9S5IDidLINA3dlBtstGpmF2Ta0vdvIAhWAEScm4SggMRfAzmEKW1PNDJ3P7qv\n\tnVpcK9aksFE+wqtCjpidxYMh1i6XWia7z0lO0Bapvw46HznOY6cifp/xFM50rd7nzvm7\n\tJ11sK1dvWJNLNXeOc1yy7ccSebAnn3iTdetAwN/6hYmbcA9+SCwoT7HiNusiYh22hsKU\n\tq2zg==",
        "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=fUeRYxiLkEkXKvfH/fu0I2EtkofuWyh81fzDGq9uTwY=;\n\tb=MJxXFre0uW4jX7M6rf6aYBcVBcZalW57GdWwPbwsOvdJiTbHU4yveJyOAYXUgjllSe\n\tJFL3IPAIK0o45y0dvenCB5pjVI48R4xrKIPj/TXqqcT3meQvzjRn13MegjjYmBtYzXPe\n\tEfVTz1RAmuNKfLL+GJ5Encbnpc7VE02oAApNShoYmuEWIhQDmbU4Nb5pige0L6scmbC3\n\tKpVzmy4weMOqLNT98jix5pZBPaPPpcIXAmuKCPu7TJ3R4Vn1xkrzbpSDZld6PCiBvRrw\n\tnZK4318kqyFQnhcJ+28YGcXGJOwMzTcuAPp/aLlArgp0k/h4hbqPKHlFBjBeT277ke41\n\tkAjQ==",
        "X-Gm-Message-State": "AOPr4FUAic0j+QjEVYfMtAM40+AAnM4duCPA2uvBMVF9aAUNuDVzHU/hTzc2jtZs+e+/ZLqq",
        "X-Received": "by 10.194.117.164 with SMTP id kf4mr3236723wjb.3.1463682120281; \n\tThu, 19 May 2016 11:22:00 -0700 (PDT)",
        "From": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "To": "openwrt-devel@lists.openwrt.org",
        "Date": "Thu, 19 May 2016 20:21:00 +0200",
        "Message-Id": "<1463682077-19339-17-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 17/34] ar71xx: Use private version of\n\tath79_setup_qca955x_eth_cfg for MR1750",
        "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 MR1750 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 MR1750 can be used instead.\n\nSigned-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>\n\nBackport of r49070\n---\n .../ar71xx/files/arch/mips/ath79/mach-mr1750.c     | 24 +++++++++++++++++++++-\n 1 file changed, 23 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c\nindex f9e45bd..e3c04e7 100644\n--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c\n+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c\n@@ -108,6 +108,28 @@ static struct mdio_board_info mr1750_mdio0_info[] = {\n \t},\n };\n \n+static void __init mr1750_setup_qca955x_eth_cfg(u32 mask,\n+\t\t\t\t\t\tunsigned int rxd,\n+\t\t\t\t\t\tunsigned int rxdv,\n+\t\t\t\t\t\tunsigned int txd,\n+\t\t\t\t\t\tunsigned 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 mr1750_setup(void)\n {\n \tu8 *art = (u8 *)KSEG1ADDR(0x1fff0000);\n@@ -129,7 +151,7 @@ static void __init mr1750_setup(void)\n \tath79_register_wmac(art + MR1750_WMAC_CALDATA_OFFSET, mac);\n \tath79_register_pci();\n \n-\tath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN);\n+\tmr1750_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(mr1750_mdio0_info,\n",
    "prefixes": [
        "OpenWrt-Devel",
        "CC",
        "17/34"
    ]
}