get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 624185,
    "url": "http://patchwork.ozlabs.org/api/patches/624185/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-14-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-14-git-send-email-sven.eckelmann@open-mesh.com>",
    "list_archive_url": null,
    "date": "2016-05-19T18:20:57",
    "name": "[OpenWrt-Devel,CC,14/34] ar71xx: Use PHY fixups for Open Mesh MR900",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "6f4eaf686ef9d7c7843a5e69b749ee844ebb747d",
    "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-14-git-send-email-sven.eckelmann@open-mesh.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/624185/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/624185/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 3r9ffK2Sfbz9sdg\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 May 2016 04:26:33 +1000 (AEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id CF7E2B92034;\n\tThu, 19 May 2016 20:22:28 +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:28 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 54F86B91FC7\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:21:56 +0200 (CEST)",
            "from mail-wm0-f50.google.com (mail-wm0-f50.google.com\n\t[74.125.82.50]) by arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:21:56 +0200 (CEST)",
            "by mail-wm0-f50.google.com with SMTP id v200so712608wmv.1\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 11:21:56 -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\th4sm15670047wjz.20.2016.05.19.11.21.55\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 19 May 2016 11:21:55 -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=gWBIWn+E; 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: -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=e5cBdI93jbJ0DuxYDTdeeJE1V7dhwXQW+hhdTfw8PVo=;\n\tb=gWBIWn+ETv3cI/Dzm7Rv55g/yqsrgKSI95/M5/N3nULIleVSG1deObO0RC0UqQA/A4\n\t6CWNvhNvCb20ff6MUcg3Ewr0T7nuiUCAsv8R6H30XcxEQ3Gk5tMGOE0crBcDRAcHknkY\n\tvo0TjVi6x09n3/kOCm/MnIV/M56JdAjpwf8Pi+pYpqQ5Lu3N/rC4XIhkAnqffO+bOjd1\n\tKb2BVKuyQSdALxRtHAoQXS6WjBku6wbzLtRymAMjR089ISHFYU4T+k5eDeI+H/Kwpcjy\n\tNG3AFaJhZgvTTTZUCo0FXCVgs+zKSBSHRcbS3TEYjgMl+Dk6RAfVAA2byaX/FEvdfFWa\n\tkoPQ==",
        "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=e5cBdI93jbJ0DuxYDTdeeJE1V7dhwXQW+hhdTfw8PVo=;\n\tb=Z4kzLkzbWZfiU+HJIc7OiR3BuKjLhn5wAGSMNr+KSy+dNVZJ/UDXtDTzyVE+ZeG+lf\n\tBkjjbL3WTZXoy5DHfgG68/7dcAUA8iCs3t82Nk2FsFKylWpouk9S1A76upxw9tqd6CF1\n\t+25WswklXSOegprxV+EbrY5q579ODqT4QQyxMFNMeXxvW/sstt86ND3oTY5RY+RHx+VF\n\tBaJK4pWR4v2xYRMFqrM1pJDoe4C7v8wuLG2PmXK7kfiA5WZXOB//XyUBIMHWlu5tyUfM\n\tcgxXB/ElhwGrSu9XbR+AJeIvkjwvhFaxd2iuncPA731QLUI2Wvz8HkE8ov38CbD/pZQa\n\tcULA==",
        "X-Gm-Message-State": "AOPr4FVg/LnoTvAp4S3R61heqX8ZtXyCOJUvqPmouq5a6cjOm4yF/13aPA7U6diTjy7rl/l7",
        "X-Received": "by 10.28.181.148 with SMTP id e142mr14487347wmf.38.1463682115984;\n\tThu, 19 May 2016 11:21:55 -0700 (PDT)",
        "From": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "To": "openwrt-devel@lists.openwrt.org",
        "Date": "Thu, 19 May 2016 20:20:57 +0200",
        "Message-Id": "<1463682077-19339-14-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 14/34] ar71xx: Use PHY fixups for Open\n\tMesh 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 delays of PHY/MAC on the MR900 are done by u-boot and OpenWrt in\ndifferent ways. u-boot only modifies the ETH_CFG of the QCA955x based on\nthe link speed. But OpenWrt can only modify the PHY delays based on the\nlink speed.\n\nThis can lead to communication problems when u-boot initializes the ETH_CFG\nfor a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY\ndelays to an incompatible value.\n\nInstead reset the ETH_CFG delay bits of the QCA955x to a specific value and\nonly rely on the AT803x PHY settings.\n\nSigned-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>\n\nBackport of r49030\n---\n .../ar71xx/files/arch/mips/ath79/mach-mr900.c      | 25 +++++++++++++++++++---\n 1 file changed, 22 insertions(+), 3 deletions(-)",
    "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 9c3164d..3634bf0 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@@ -23,6 +23,7 @@\n #include <linux/ath9k_platform.h>\n \n #include <asm/mach-ath79/ar71xx_regs.h>\n+#include <linux/platform_data/phy-at803x.h>\n \n #include \"common.h\"\n #include \"dev-ap9x-pci.h\"\n@@ -94,15 +95,30 @@ static struct gpio_keys_button mr900_gpio_keys[] __initdata = {\n \t},\n };\n \n+static struct at803x_platform_data mr900_at803x_data = {\n+\t.disable_smarteee = 1,\n+\t.enable_rgmii_rx_delay = 1,\n+\t.enable_rgmii_tx_delay = 0,\n+\t.fixup_rgmii_tx_delay = 1,\n+};\n+\n+static struct mdio_board_info mr900_mdio0_info[] = {\n+\t{\n+\t\t.bus_id = \"ag71xx-mdio.0\",\n+\t\t.phy_addr = 5,\n+\t\t.platform_data = &mr900_at803x_data,\n+\t},\n+};\n+\n static void __init mr900_setup(void)\n {\n \tu8 *art = (u8 *)KSEG1ADDR(0x1fff0000);\n \tu8 mac[6], pcie_mac[6];\n \tstruct ath9k_platform_data *pdata;\n \n-\tath79_eth0_pll_data.pll_1000 = 0xbe000101;\n-\tath79_eth0_pll_data.pll_100 = 0x80000101;\n-\tath79_eth0_pll_data.pll_10 = 0x80001313;\n+\tath79_eth0_pll_data.pll_1000 = 0xae000000;\n+\tath79_eth0_pll_data.pll_100 = 0xa0000101;\n+\tath79_eth0_pll_data.pll_10 = 0xa0001313;\n \n \tath79_register_m25p80(NULL);\n \n@@ -126,6 +142,9 @@ static void __init mr900_setup(void)\n \tath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN);\n \tath79_register_mdio(0, 0x0);\n \n+\tmdiobus_register_board_info(mr900_mdio0_info,\n+\t\t\t\t    ARRAY_SIZE(mr900_mdio0_info));\n+\n \tath79_init_mac(ath79_eth0_data.mac_addr, art + MR900_MAC0_OFFSET, 0);\n \n \t/* GMAC0 is connected to the RMGII interface */\n",
    "prefixes": [
        "OpenWrt-Devel",
        "CC",
        "14/34"
    ]
}