get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 557296,
    "url": "http://patchwork.ozlabs.org/api/patches/557296/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patch-20151216-3@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-3@vittgam.net>",
    "list_archive_url": null,
    "date": "2015-12-16T04:42:08",
    "name": "[OpenWrt-Devel,3/5] lantiq: Allow configuration of ath9k disabled bands and LED polarity from the device tree.",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "5b49ff1e79ec470e1ce1ac49d03cd568377b17bb",
    "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-3@vittgam.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/557296/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/557296/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 F1FE61402C4\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 16 Dec 2015 15:44:47 +1100 (AEDT)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 3E397284314;\n\tWed, 16 Dec 2015 05:43:21 +0100 (CET)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 09D2328419F\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tWed, 16 Dec 2015 05:41:55 +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:55 +0100 (CET)",
            "from mail2.vittgam.net (server2.tincvpn.vittgam.net [10.48.0.5])\n\tby mail.vittgam.net with ESMTP id tBG4g9Wh052042\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);\n\tWed, 16 Dec 2015 05:42:09 +0100",
            "from vl2 (vl2.r12.network.mietitrebbia.rocks [10.48.6.146])\n\tby mail2.vittgam.net with SMTP id tBG4g5Jp005523;\n\tWed, 16 Dec 2015 05:42:08 +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=Lp71+5Xq; 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:hard: -7.6",
        "X-DKIM": "OpenDKIM Filter v2.4.2 mail.vittgam.net tBG4g9Wh052042",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=vittgam.net;\n\ts=20150519; t=1450240929;\n\tbh=TUCEaxalPH+ep+HA1G7y7UHVNg7NN9FSA6C4T1kRbZM=;\n\th=Date:From:To:Subject:Content-Type:Message-ID;\n\tb=Lp71+5XqumH5Me6STBX2qIiUsRb+13j0DNksurDlt/4JdVPj0j1DXc7LQu0ESkNT8\n\tpCMgumod0krCPyvSqPS06BR+RfqMuDr+AhMXwldiH/AY2STKP3QAIkdAKcWCsShcUQ\n\taK5jiK/6+xQAuln7SHxc8v4id4pzYQc4yQ8ex9ZPEyKZ7zejxdjlEq8pXWvbO215p2\n\tJEr3VS+UUn5mtkCAyyMvaGPTgx71HZoAoY1GWdOadz8exysnmRo87JuHzkTaom2KIe\n\tIF+r9TS8YXtO9g1A0IC5QVQD1MOd7qcycMXDdCET25nNqc5uAeNOuxctaS90x635Kv\n\tgPcbEDDTVXDGuZpsyHEF8mAd2c8I2euAjVlx5uenN9IKJ7VGyE4nEU0WBsc/Rdx8jg\n\tCOk0TOage8iwwbkkqtmB6NG0+B8PMA2P1UmI+qJlnfTZ4Td4JUmLnUSH6+lXDyKL5J\n\tiV9qlfO71XvelxJLtnZYUHEQuAYdphgklkCKwJ33OKiVCwV2cMzCy8QwekEeN6VmpG\n\thS7O6I7xKxuBg79nkEXW8GWkZ4WTyLEiLRH4YtMTRGwyjObgvd831KZH9X73ugmsNq\n\tO5Ol0qmxU22np3NROFI8YLmJdBTHUNknBlWXZ7ugN2/tX/Y2sJFkUg7Tp6uzsyDBOO\n\t7bfkgE/vEcaq5tTwRznCJ7AQ=",
        "Date": "Wed, 16 Dec 2015 05:42:08 +0100",
        "From": "\"Vittorio G (VittGam)\" <openwrt@vittgam.net>",
        "To": "<openwrt-devel@lists.openwrt.org>",
        "Message-ID": "<owrt-patch-20151216-3@vittgam.net>",
        "Subject": "[OpenWrt-Devel] [PATCH 3/5] lantiq: Allow configuration of ath9k\n\tdisabled bands and LED polarity from the device tree.",
        "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=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "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/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch\n+++ b/target/linux/lantiq/patches-4.1/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",
        "3/5"
    ]
}