get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 424019,
    "url": "http://patchwork.ozlabs.org/api/patches/424019/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patches-20141225-6@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-patches-20141225-6@vittgam.net>",
    "list_archive_url": null,
    "date": "2014-12-25T01:30:44",
    "name": "[OpenWrt-Devel] ramips: Fix HooToo HT-TM02 support.",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d091f4e2b26d1d332faeb95c5c1d94871def52b4",
    "submitter": {
        "id": 65409,
        "url": "http://patchwork.ozlabs.org/api/people/65409/?format=api",
        "name": "Vittorio Gambaletta",
        "email": "openwrt@vittgam.net"
    },
    "delegate": {
        "id": 54613,
        "url": "http://patchwork.ozlabs.org/api/users/54613/?format=api",
        "username": "blogic",
        "first_name": "John",
        "last_name": "Crispin",
        "email": "blogic@openwrt.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patches-20141225-6@vittgam.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/424019/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/424019/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.1 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 6E7621400DD\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 25 Dec 2014 12:31:14 +1100 (AEDT)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 8C12428BD6B;\n\tThu, 25 Dec 2014 02:29:10 +0100 (CET)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id B296528A685\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 25 Dec 2014 02:29:03 +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\tThu, 25 Dec 2014 02:29:03 +0100 (CET)",
            "from mail2.vittgam.net ([10.48.0.5])\n\tby mail.vittgam.net (8.14.4/8.14.4/Debian-2ubuntu2) with ESMTP id\n\tsBP1Uwuq132280\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);\n\tThu, 25 Dec 2014 02:30:58 +0100",
            "from VittGamLaptop2 (VittGamLaptop2.router1net.VittGam.net\n\t[10.48.3.146])\n\tby mail2.vittgam.net (8.14.4/8.14.4/Debian-2ubuntu2) with SMTP id\n\tsBP1SGq0018051; Thu, 25 Dec 2014 02:30:44 +0100"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID,\n\tT_RP_MATCHES_RCVD 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 sBP1Uwuq132280",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=vittgam.net;\n\ts=20110809; t=1419471059;\n\tbh=16n9OBG+JANzYMhWT8hfSIuhZBQ7Z4gKER3ElPfDU+g=;\n\th=Date:Content-Type:From:Message-Id:To:Cc:Subject;\n\tb=MapLVLoo4QAlNiJ8I7DeqZYhLW7UiWzTwo+zZ3UD0dYuUWN6Cq6exVFNBIj2GG1lH\n\tS+G8X/NwoSkOfJJ7lAPHsRd3j1NEflTWtJDVw1TJaTHYENATcBAzOtz1lfb9hWrFSk\n\tRkG2ncRq+K2y9FrJyXISDSQu3P4VeZA2ZZPzUdRI=",
        "Date": "Thu, 25 Dec 2014 02:30:44 +0100",
        "From": "\"Vittorio G (VittGam)\" <openwrt@vittgam.net>",
        "Message-Id": "<owrt-patches-20141225-6@vittgam.net>",
        "To": "<blogic@openwrt.org>",
        "Cc": "openwrt-devel@lists.openwrt.org",
        "Subject": "[OpenWrt-Devel] [PATCH] ramips: Fix HooToo HT-TM02 support.",
        "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": "- Fix LED definitions.\n- Add mode-switch slider definition (at GPIO 14).\n- Remove unneeded VLAN now that the ethernet driver is fixed and TCP packets get passed correctly now. (This router only has one port.)\n- Fix LAN port MAC address, which is defined in the factory partition as WLAN MAC address + 1.\n- Fix board name, as the company name is HooToo and not HOOTOO.\n- Remove unnecessary packages from the profile. (The end-user is supposed to use mechanisms such as the ImageBuilder in order to add his own set of packages to his own images... while the precompiled images should just contain the core set of packages needed to run the base functions of a wireless router.)\n\nSigned-off-by: Vittorio Gambaletta <openwrt@vittgam.net>",
    "diff": "diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds\nindex 9c49c5c..405a6c0 100755\n--- a/target/linux/ramips/base-files/etc/board.d/01_leds\n+++ b/target/linux/ramips/base-files/etc/board.d/01_leds\n@@ -118,10 +118,10 @@ case $board in\n \thlk-rm04)\n \t\tset_wifi_led \"rt2800pci-phy0::radio\"\n \t\t;;\n-        ht-tm02)\n-\t\tucidef_set_led_netdev \"eth\" \"ETH\" \"ht-tm02:white:status\" \"eth0\"\n-\t\tset_wifi_led \"ht-tm02:blue:wifi\"\n-                ;;\n+\tht-tm02)\n+\t\tucidef_set_led_netdev \"eth\" \"Ethernet\" \"ht-tm02:green:lan\" \"eth0\"\n+\t\tset_wifi_led \"ht-tm02:blue:wlan\"\n+\t\t;;\n \tall0239-3g|\\\n \thw550-3g)\n \t\tset_usb_led \"hw550-3g:green:usb\"\ndiff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network\nindex 80b5449..a86466e 100755\n--- a/target/linux/ramips/base-files/etc/board.d/02_network\n+++ b/target/linux/ramips/base-files/etc/board.d/02_network\n@@ -50,6 +50,7 @@ ramips_setup_interfaces()\n \tall5003 | \\\n \tbroadway | \\\n \tdcs-930| \\\n+\tht-tm02| \\\n \tncs601w | \\\n \twnce2001)\n \t\tucidef_add_switch \"switch0\" \"1\" \"0\"\n@@ -103,12 +104,6 @@ ramips_setup_interfaces()\n \t\tucidef_add_switch_vlan \"switch0\" \"2\" \"4 9t\"\n \t\t;;\n \n-\tht-tm02)\n-\t\tucidef_set_interface_lan \"eth0.1\"\n-\t\tucidef_add_switch \"switch0\" \"1\" \"1\"\n-\t\tucidef_add_switch_vlan \"switch0\" \"1\" \"4 6t\"\n-\t\t;;\n-\n \t3g-6200n | \\\n \tai-br100 | \\\n \tdir-610-a1 | \\\n@@ -291,7 +286,6 @@ ramips_setup_macs()\n \thlk-rm04 | \\\n \tmpr-a1 | \\\n \tmpr-a2 | \\\n-        ht-tm02 | \\\n \tdir-300-b7 | \\\n \tdir-320-b1 | \\\n \tpsr-680w |\\\n@@ -303,6 +297,10 @@ ramips_setup_macs()\n \t\twan_mac=$(macaddr_add \"$lan_mac\" 1)\n \t\t;;\n \n+\tht-tm02)\n+\t\tlan_mac=$(cat /sys/class/net/eth0/address)\n+\t\t;;\n+\n \tcy-swr1100 | \\\n \tdir-645)\n \t\tlan_mac=$(mtd_get_mac_ascii nvram lanmac)\ndiff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh\nindex 1af64b2..103dfcd 100755\n--- a/target/linux/ramips/base-files/etc/diag.sh\n+++ b/target/linux/ramips/base-files/etc/diag.sh\n@@ -73,7 +73,7 @@ get_status_led() {\n \t\tstatus_led=\"hlk-rm04:red:power\"\n \t\t;;\n \tht-tm02)\n-\t\tstatus_led=\"ht-tm02:white:status\"\n+\t\tstatus_led=\"ht-tm02:blue:wlan\"\n \t\t;;\n \tall0239-3g|\\\n \thw550-3g)\ndiff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh\nindex b4e5d91..257f605 100755\n--- a/target/linux/ramips/base-files/lib/ramips.sh\n+++ b/target/linux/ramips/base-files/lib/ramips.sh\n@@ -172,7 +172,7 @@ ramips_board_detect() {\n \t*\"HILINK HLK-RM04\")\n \t\tname=\"hlk-rm04\"\n \t\t;;\n-\t*\"HOOTOO HT-TM02\")\n+\t*\"HooToo HT-TM02\")\n \t\tname=\"ht-tm02\"\n \t\t;;\n \t*\"HAME MPR-A1\")\ndiff --git a/target/linux/ramips/dts/HT-TM02.dts b/target/linux/ramips/dts/HT-TM02.dts\nindex 1f456f0..40d9e01 100644\n--- a/target/linux/ramips/dts/HT-TM02.dts\n+++ b/target/linux/ramips/dts/HT-TM02.dts\n@@ -4,14 +4,12 @@\n \n / {\n \tcompatible = \"HT-TM02\", \"ralink,rt5350-soc\";\n-\tmodel = \"HOOTOO HT-TM02\";\n+\tmodel = \"HooToo HT-TM02\";\n \n \tpalmbus@10000000 {\n-\n-               gpio0: gpio@600 {\n+\t\tgpio0: gpio@600 {\n \t\t\tstatus = \"okay\";\n-               };\n-               \n+\t\t};\n \t\tspi@b00 {\n \t\t\tstatus = \"okay\";\n \t\t\tm25p80@0 {\n@@ -21,25 +19,21 @@\n \t\t\t\treg = <0 0>;\n \t\t\t\tlinux,modalias = \"m25p80\", \"mx25l6405d\";\n \t\t\t\tspi-max-frequency = <10000000>;\n-\n \t\t\t\tpartition@0 {\n \t\t\t\t\tlabel = \"u-boot\";\n \t\t\t\t\treg = <0x0 0x30000>;\n \t\t\t\t\tread-only;\n \t\t\t\t};\n-\n \t\t\t\tpartition@30000 {\n \t\t\t\t\tlabel = \"u-boot-env\";\n \t\t\t\t\treg = <0x30000 0x10000>;\n \t\t\t\t\tread-only;\n \t\t\t\t};\n-\n \t\t\t\tfactory: partition@40000 {\n \t\t\t\t\tlabel = \"factory\";\n \t\t\t\t\treg = <0x40000 0x10000>;\n \t\t\t\t\tread-only;\n \t\t\t\t};\n-\n \t\t\t\tpartition@50000 {\n \t\t\t\t\tlabel = \"firmware\";\n \t\t\t\t\treg = <0x50000 0x7b0000>;\n@@ -58,11 +52,11 @@\n \t};\n \n \tethernet@10100000 {\n-\t\tmtd-mac-address = <&factory 0x4>;\n+\t\tmtd-mac-address = <&factory 0x28>;\n \t};\n \n \tesw@10110000 {\n-\t\tralink,portmap = <0x3f>;\n+\t\tralink,portmap = <0x10>;\n \t};\n \n \twmac@10180000 {\n@@ -79,12 +73,12 @@\n \n \tgpio-leds {\n \t\tcompatible = \"gpio-leds\";\n-\t\twifi  {\n-\t\t\tlabel = \"ht-tm02:blue:wifi\";\n+\t\twlan {\n+\t\t\tlabel = \"ht-tm02:blue:wlan\";\n \t\t\tgpios = <&gpio0 7 1>;\n \t\t};\n-\t\tstatus  {\n-\t\t\tlabel = \"ht-tm02:yellow:status\";\n+\t\tlan {\n+\t\t\tlabel = \"ht-tm02:green:lan\";\n \t\t\tgpios = <&gpio0 12 1>;\n \t\t};\n \n@@ -95,10 +89,16 @@\n \t\t#address-cells = <1>;\n \t\t#size-cells = <0>;\n \t\tpoll-interval = <20>;\n-\t\twps {\n+\t\treset {\n \t\t\tlabel = \"reset\";\n \t\t\tgpios = <&gpio0 10 1>;\n \t\t\tlinux,code = <0x198>;\n \t\t};\n+\t\tmodeswitch {\n+\t\t\tlabel = \"modeswitch\";\n+\t\t\tgpios = <&gpio0 14 1>;\n+\t\t\tlinux,code = <0x100>;\n+\t\t\tlinux,input-type = <5>;\n+\t\t};\n \t};\n };\ndiff --git a/target/linux/ramips/rt305x/profiles/hootoo.mk b/target/linux/ramips/rt305x/profiles/hootoo.mk\nindex 976226d..efd23ed 100644\n--- a/target/linux/ramips/rt305x/profiles/hootoo.mk\n+++ b/target/linux/ramips/rt305x/profiles/hootoo.mk\n@@ -1,27 +1,17 @@\n #\n-# Copyright (C) 2013 OpenWrt.org\n+# Copyright (C) 2014 OpenWrt.org\n #\n # This is free software, licensed under the GNU General Public License v2.\n # See /LICENSE for more information.\n #\n \n-\n define Profile/HT-TM02\n-\tNAME:=HOOTOO HT-TM02\n-\tPACKAGES:=\\\n-\t\twpad-mini \\\n-\t\tkmod-ledtrig-netdev kmod-ledtrig-timer kmod-leds-gpio kmod-ledtrig-default-on \\\n-\t\tkmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-net usbutils \\\n-\t\tkmod-scsi-core kmod-scsi-generic kmod-fs-ext4 \\\n-\t\tkmod-usb-storage kmod-usb-storage-extras block-mount \\\n-\t\tkmod-usb-serial kmod-usb-serial-ftdi kmod-gpio-button-hotplug \\\n-\t\tkmod-nls-cp437 kmod-nls-iso8859-1 kmod-nls-utf8 luci luci-mod-admin-full \\\n-\t\tkmod-app-samba luci-theme-openwrt luci-proto-relay relayd nano \\\n-\t\tfstools \n+\tNAME:=HooToo HT-TM02\n+\tPACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev\n endef\n \n define Profile/HT-TM02/Description\n-\tPackage set for HOOTOO HT-TM02 board\n+\tPackage set optimized for the HooToo HT-TM02.\n endef\n \n $(eval $(call Profile,HT-TM02))\n",
    "prefixes": [
        "OpenWrt-Devel"
    ]
}