get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 614736,
    "url": "http://patchwork.ozlabs.org/api/patches/614736/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/openwrt-patch-20160425-1@vittgam.net/",
    "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": "<openwrt-patch-20160425-1@vittgam.net>",
    "list_archive_url": null,
    "date": "2016-04-25T22:54:15",
    "name": "[OpenWrt-Devel,CC] lantiq: Fix ath9k LED for TDW8970.",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "eb49a2dd453aad6b7cf4b01d082bc4ed9d489201",
    "submitter": {
        "id": 65409,
        "url": "http://patchwork.ozlabs.org/api/people/65409/?format=api",
        "name": "Vittorio Gambaletta",
        "email": "openwrt@vittgam.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/openwrt-patch-20160425-1@vittgam.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/614736/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/614736/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",
            "<openwrt-devel@lists.openwrt.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 3qv1km4VZKz9t6f\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 26 Apr 2016 08:54:40 +1000 (AEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 9543BB91AB3;\n\tTue, 26 Apr 2016 00:54:22 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP;\n\tTue, 26 Apr 2016 00:54:22 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 60A5AB91A52\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tTue, 26 Apr 2016 00:54:18 +0200 (CEST)",
            "from mail.vittgam.net (server1.vittgam.net [213.239.197.142])\n\tby arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tTue, 26 Apr 2016 00:54:16 +0200 (CEST)",
            "from vl3 (vl3.r12.network.mietitrebbia.rocks [10.48.6.117])\n\tby mail.vittgam.net with SMTP id u3PMsFT1174978\n\tfor <openwrt-devel@lists.openwrt.org>; Tue, 26 Apr 2016 00:54:15 +0200"
        ],
        "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\n\tautolearn=unavailable autolearn_force=no version=3.4.1",
        "X-policyd-weight": "using cached result; rate: -6.1",
        "X-DKIM": "OpenDKIM Filter v2.4.2 mail.vittgam.net u3PMsFT1174978",
        "Authentication-Results": "mail.vittgam.net; dkim=none (no signature);\n\tdkim-adsp=none (insecure policy)",
        "Date": "Tue, 26 Apr 2016 00:54:15 +0200",
        "From": "\"Vittorio Gambaletta (VittGam)\" <openwrt@vittgam.net>",
        "To": "<openwrt-devel@lists.openwrt.org>",
        "Message-ID": "<openwrt-patch-20160425-1@vittgam.net>",
        "Subject": "[OpenWrt-Devel] [PATCH] [CC] lantiq: Fix ath9k LED for TDW8970.",
        "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>",
        "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": "Backport of r47911, r47912, r47969 to CC.\n\nAll other required patches have already been backported in r48822.\n\nSigned-off-by: Vittorio Gambaletta <openwrt@vittgam.net>\n---",
    "diff": "diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds\nindex 6956d61..5643f7f 100644\n--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds\n+++ b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds\n@@ -30,6 +30,9 @@ BTHOMEHUBV3A)\n \tucidef_set_led_wlan \"wifi\" \"wifi\" \"soc:blue:wireless\" \"phy0tpt\"\n \tucidef_set_led_netdev \"internet\" \"internet\" \"soc:blue:broadband\" \"pppoa-wan\"\n \t;;\n+TDW8970)\n+\tucidef_set_led_wlan \"wifi\" \"wifi\" \"ath9k-phy0\" \"phy0tpt\"\n+\t;;\n VGV7510KW22)\n \tucidef_set_led_default \"power\" \"power\" \"power\" \"1\"\n \tucidef_set_led_default \"power2\" \"power2\" \"power2\" \"0\"\ndiff --git a/target/linux/lantiq/dts/TDW8970.dts b/target/linux/lantiq/dts/TDW8970.dts\nindex d8dcb5d..cb4d88b 100644\n--- a/target/linux/lantiq/dts/TDW8970.dts\n+++ b/target/linux/lantiq/dts/TDW8970.dts\n@@ -202,6 +202,8 @@\n \t\tath,mac-offset = <0xf100>;\n \t\tath,mac-increment;\n \t\tath,led-pin = <0>;\n+\t\tath,disable-5ghz;\n+\t\tath,led-active-high;\n \t};\n \n \tgpio-keys-polled {\ndiff --git a/target/linux/lantiq/patches-3.18/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch b/target/linux/lantiq/patches-3.18/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch\nindex 04c2071..9198fe5 100644\n--- a/target/linux/lantiq/patches-3.18/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch\n+++ b/target/linux/lantiq/patches-3.18/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch\n@@ -51,13 +51,14 @@ Signed-off-by: John Crispin <blogic@openwrt.org>\n  obj-$(CONFIG_XRX200_PHY_FW) += xrx200_phy_fw.o\n --- /dev/null\n +++ b/arch/mips/lantiq/xway/ath_eep.c\n-@@ -0,0 +1,282 @@\n+@@ -0,0 +1,298 @@\n +/*\n + *  Copyright (C) 2011 Luca Olivetti <luca@ventoso.org>\n + *  Copyright (C) 2011 John Crispin <blogic@openwrt.org>\n + *  Copyright (C) 2011 Andrej Vlašić <andrej.vlasic0@gmail.com>\n + *  Copyright (C) 2013 Álvaro Fernández Rojas <noltari@gmail.com>\n + *  Copyright (C) 2013 Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>\n++ *  Copyright (C) 2015 Vittorio Gambaletta <openwrt@vittgam.net>\n + *\n + *  This program is free software; you can redistribute it and/or modify it\n + *  under the terms of the GNU General Public License version 2 as published\n@@ -192,6 +193,21 @@ Signed-off-by: John Crispin <blogic@openwrt.org>\n +\t\tdev_info(&pdev->dev, \"using led pin %d.\\n\", led_pin);\n +\t}\n +\n++\tif (of_property_read_bool(np, \"ath,led-active-high\")) {\n++\t\tath9k_pdata.led_active_high = true;\n++\t\tdev_info(&pdev->dev, \"inverted LED polarity\\n\");\n++\t}\n++\n++\tif (of_property_read_bool(np, \"ath,disable-2ghz\")) {\n++\t\tath9k_pdata.disable_2ghz = true;\n++\t\tdev_info(&pdev->dev, \"disabled 2.4 GHz band\\n\");\n++\t}\n++\n++\tif (of_property_read_bool(np, \"ath,disable-5ghz\")) {\n++\t\tath9k_pdata.disable_5ghz = true;\n++\t\tdev_info(&pdev->dev, \"disabled 5 GHz band\\n\");\n++\t}\n++\n +\tdev_info(&pdev->dev, \"loaded ath9k eeprom\\n\");\n +\n +\treturn 0;\n",
    "prefixes": [
        "OpenWrt-Devel",
        "CC"
    ]
}