get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 557298,
    "url": "http://patchwork.ozlabs.org/api/patches/557298/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patch-20151216-2@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": "<owrt-patch-20151216-2@vittgam.net>",
    "list_archive_url": null,
    "date": "2015-12-16T04:42:07",
    "name": "[OpenWrt-Devel,2/5] ath9k: Allow configuration of LED polarity in platform data.",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "f2046372b45ad1a4a5185cd622887f4cf4f98f98",
    "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/owrt-patch-20151216-2@vittgam.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/557298/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/557298/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 (arrakis.dune.hu [78.24.191.176])\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 582311402C4\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 16 Dec 2015 15:47:06 +1100 (AEDT)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id E3E8D28BC16;\n\tWed, 16 Dec 2015 05:43:33 +0100 (CET)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id BDDF82800EA\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tWed, 16 Dec 2015 05:42:15 +0100 (CET)",
            "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\tWed, 16 Dec 2015 05:41:54 +0100 (CET)",
            "from mail2.vittgam.net (server2.tincvpn.vittgam.net [10.48.0.5])\n\tby mail.vittgam.net with ESMTP id tBG4g7qO052033\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);\n\tWed, 16 Dec 2015 05:42:08 +0100",
            "from vl2 (vl2.r12.network.mietitrebbia.rocks [10.48.6.146])\n\tby mail2.vittgam.net with SMTP id tBG4g5Jn005523;\n\tWed, 16 Dec 2015 05:42:07 +0100"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (4096-bit key;\n\tunprotected) header.d=vittgam.net header.i=@vittgam.net\n\theader.b=kijGQ+Yx; dkim-atps=neutral",
        "X-Spam-Checker-Version": "SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,\n\tT_DKIM_INVALID autolearn=unavailable version=3.3.2",
        "X-policyd-weight": "using cached result; rate: -7.6",
        "X-DKIM": "OpenDKIM Filter v2.4.2 mail.vittgam.net tBG4g7qO052033",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=vittgam.net;\n\ts=20150519; t=1450240928;\n\tbh=Dza1gobYT5NV0HoD2GsbH+qc9Mx7qoCfndNKhSOe9M4=;\n\th=Date:From:To:Subject:Content-Type:Message-ID;\n\tb=kijGQ+YxuAY457EucV1MymTxEGs0KQICEHTCVtn9vptJoU5PavZb0vGZUqykXVG0J\n\tJ3//Nk36ljMCXUpHvjCViqye0SwTi6M4g/3x//ZkPlnSrJ428DM7HxM1+gd4meUk2q\n\tgz5S8ZnxASJPu6O+pbXc6IsZszK0b5OR/hhFzpBTwuOwoRGnxPCOKcO+ioBcwLdHal\n\tKA63ki0/YZK5veSytYDW7IJtQecyBgsSdxSBwxuPwpT8cImIR4ou8ZkVWPqxk9te3s\n\tS7cj6V7lSDACL/24LKNPEnUpX2btXzfiY32Y94rXelt+G52nFTcl+jShWEBbY+4XRC\n\t7wSrRQ0xmLCcOaH464YZ7tl8smB2f2VRlQm9xkkfbWRnzryMjS16l5Ek9IDjbS+6mv\n\tlDaK+eMc9Kad9UIrzWLmAZkLooXLQHJtPt609KmX/n9WxuC/QQmMYwPKoUD8sl0nMC\n\tIvYOZ549BcLfHvRTrsVUYPFyfGtdeU7xdjPn1YjIML0KxyUqg2mqrv0GkR0m6i80XL\n\tARUc6Z65QYNeoGmH6kMJEPfpQndinSpPd2ZuJ9CvDjsFmZlLaEBGrXmKouOYnaeXIS\n\tWUBUsqyjDlx1OtOhYGz0gc4XZHS4tK2Rg2tForGhdesnINAwYMOYulT37DphQWuDrs\n\tUoQnZm/oC+lg5Fkh6YZAdzno=",
        "Date": "Wed, 16 Dec 2015 05:42:07 +0100",
        "From": "\"Vittorio G (VittGam)\" <openwrt@vittgam.net>",
        "To": "<openwrt-devel@lists.openwrt.org>",
        "Message-ID": "<owrt-patch-20151216-2@vittgam.net>",
        "Subject": "[OpenWrt-Devel] [PATCH 2/5] ath9k: Allow configuration of LED\n\tpolarity in platform data.",
        "X-BeenThere": "openwrt-devel@lists.openwrt.org",
        "X-Mailman-Version": "2.1.15",
        "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=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "openwrt-devel-bounces@lists.openwrt.org",
        "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>"
    },
    "content": "Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>\n\n---",
    "diff": "--- a/target/linux/generic/files/include/linux/ath9k_platform.h\n+++ b/target/linux/generic/files/include/linux/ath9k_platform.h\n@@ -36,6 +36,7 @@ struct ath9k_platform_data {\n \tbool tx_gain_buffalo;\n \tbool disable_2ghz;\n \tbool disable_5ghz;\n+\tbool led_active_high;\n \n \tint (*get_mac_revision)(void);\n \tint (*external_reset)(void);\n--- /dev/null\n+++ b/package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch\n@@ -0,0 +1,20 @@\n+--- a/include/linux/ath9k_platform.h\n++++ b/include/linux/ath9k_platform.h\n+@@ -36,6 +36,7 @@ struct ath9k_platform_data {\n+ \tbool tx_gain_buffalo;\n+ \tbool disable_2ghz;\n+ \tbool disable_5ghz;\n++\tbool led_active_high;\n+ \n+ \tint (*get_mac_revision)(void);\n+ \tint (*external_reset)(void);\n+--- a/drivers/net/wireless/ath/ath9k/init.c\n++++ b/drivers/net/wireless/ath/ath9k/init.c\n+@@ -577,6 +577,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc,\n+ \t\tah->external_reset = pdata->external_reset;\n+ \t\tah->disable_2ghz = pdata->disable_2ghz;\n+ \t\tah->disable_5ghz = pdata->disable_5ghz;\n++\t\tah->config.led_active_high = pdata->led_active_high;\n+ \t\tif (!pdata->endian_check)\n+ \t\t\tah->ah_flags |= AH_NO_EEP_SWAP;\n+ \t}\n--- a/package/kernel/mac80211/patches/543-ath9k_entropy_from_adc.patch\n+++ b/package/kernel/mac80211/patches/543-ath9k_entropy_from_adc.patch\n@@ -55,7 +55,7 @@\n  \tops->spectral_scan_config = ar9003_hw_spectral_scan_config;\n --- a/drivers/net/wireless/ath/ath9k/init.c\n +++ b/drivers/net/wireless/ath/ath9k/init.c\n-@@ -710,7 +710,8 @@ static void ath9k_init_txpower_limits(st\n+@@ -711,7 +711,8 @@ static void ath9k_init_txpower_limits(st\n  \tif (ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ)\n  \t\tath9k_init_band_txpower(sc, IEEE80211_BAND_5GHZ);\n  \n@@ -65,7 +65,7 @@\n  }\n  \n  static const struct ieee80211_iface_limit if_limits[] = {\n-@@ -910,6 +911,18 @@ static void ath9k_set_hw_capab(struct at\n+@@ -911,6 +912,18 @@ static void ath9k_set_hw_capab(struct at\n  \tSET_IEEE80211_PERM_ADDR(hw, common->macaddr);\n  }\n  \n@@ -84,7 +84,7 @@\n  int ath9k_init_device(u16 devid, struct ath_softc *sc,\n  \t\t    const struct ath_bus_ops *bus_ops)\n  {\n-@@ -955,6 +968,8 @@ int ath9k_init_device(u16 devid, struct\n+@@ -956,6 +969,8 @@ int ath9k_init_device(u16 devid, struct\n  \t\tARRAY_SIZE(ath9k_tpt_blink));\n  #endif\n  \n",
    "prefixes": [
        "OpenWrt-Devel",
        "2/5"
    ]
}