get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1206955,
    "url": "http://patchwork.ozlabs.org/api/patches/1206955/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1c382fd916b66bfe3ce8ef18c12f954dbcbddbbc.1575914275.git.landen.chao@mediatek.com/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1c382fd916b66bfe3ce8ef18c12f954dbcbddbbc.1575914275.git.landen.chao@mediatek.com>",
    "list_archive_url": null,
    "date": "2019-12-10T08:14:39",
    "name": "[net-next,3/6] dt-bindings: net: dsa: add new MT7531 binding to support MT7531",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "5489d9b947cf386aedf60ad3ccf6e7ce8e0b3bce",
    "submitter": {
        "id": 78098,
        "url": "http://patchwork.ozlabs.org/api/people/78098/?format=api",
        "name": "Landen Chao",
        "email": "landen.chao@mediatek.com"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1c382fd916b66bfe3ce8ef18c12f954dbcbddbbc.1575914275.git.landen.chao@mediatek.com/mbox/",
    "series": [
        {
            "id": 147499,
            "url": "http://patchwork.ozlabs.org/api/series/147499/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=147499",
            "date": "2019-12-10T08:14:36",
            "name": "net-next: dsa: mt7530: add support for MT7531",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/147499/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1206955/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1206955/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming-netdev@ozlabs.org",
        "Delivered-To": "patchwork-incoming-netdev@ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org; spf=none (no SPF record)\n\tsmtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67;\n\thelo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dmarc=pass (p=none dis=none)\n\theader.from=mediatek.com",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=mediatek.com header.i=@mediatek.com\n\theader.b=\"SuczJHZp\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 47XCXj3BBNz9sPh\n\tfor <patchwork-incoming-netdev@ozlabs.org>;\n\tTue, 10 Dec 2019 19:15:01 +1100 (AEDT)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1727133AbfLJIPA (ORCPT\n\t<rfc822;patchwork-incoming-netdev@ozlabs.org>);\n\tTue, 10 Dec 2019 03:15:00 -0500",
            "from mailgw02.mediatek.com ([210.61.82.184]:45567 \"EHLO\n\tmailgw02.mediatek.com\" rhost-flags-OK-FAIL-OK-FAIL) by\n\tvger.kernel.org with ESMTP id S1727022AbfLJIO7 (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 10 Dec 2019 03:14:59 -0500",
            "from mtkcas07.mediatek.inc [(172.21.101.84)] by\n\tmailgw02.mediatek.com (envelope-from <landen.chao@mediatek.com>)\n\t(Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS)\n\twith ESMTP id 297826603; Tue, 10 Dec 2019 16:14:47 +0800",
            "from mtkcas08.mediatek.inc (172.21.101.126) by\n\tmtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server\n\t(TLS) id 15.0.1395.4; Tue, 10 Dec 2019 16:14:38 +0800",
            "from mtksdccf07.mediatek.inc (172.21.84.99) by\n\tmtkcas08.mediatek.inc\n\t(172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via\n\tFrontend Transport; Tue, 10 Dec 2019 16:14:26 +0800"
        ],
        "X-UUID": [
            "a1d9a42928d44d63b201d5ad84c05baa-20191210",
            "a1d9a42928d44d63b201d5ad84c05baa-20191210"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=mediatek.com; s=dk; \n\th=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From;\n\tbh=KJqQ2m7z9H4vre+SZyxgKEGRWb9Edp5pJlYnepJNMyM=; \n\tb=SuczJHZpeY7vF8UsCGorYUAcT2lEUX2E0ciiyQBS1rDLPzTYnufK8OXyAw5Uq8U1m72TGWYCaq1o0VWtI1meJpEmCL2TVK/d+Y+IaacHlO716BmX77+0MU0crczE8zx1Nz2pNh+GicsB6AoC9qbBU+p5egbKDMBhpRaGQNAeBww=;",
        "From": "Landen Chao <landen.chao@mediatek.com>",
        "To": "<andrew@lunn.ch>, <f.fainelli@gmail.com>,\n\t<vivien.didelot@savoirfairelinux.com>, <matthias.bgg@gmail.com>,\n\t<robh+dt@kernel.org>, <mark.rutland@arm.com>",
        "CC": "<devicetree@vger.kernel.org>, <netdev@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>,\n\t<linux-mediatek@lists.infradead.org>, <davem@davemloft.net>,\n\t<sean.wang@mediatek.com>, <opensource@vdorst.com>,\n\t<frank-w@public-files.de>, Landen Chao <landen.chao@mediatek.com>",
        "Subject": "[PATCH net-next 3/6] dt-bindings: net: dsa: add new MT7531 binding\n\tto support MT7531",
        "Date": "Tue, 10 Dec 2019 16:14:39 +0800",
        "Message-ID": "<1c382fd916b66bfe3ce8ef18c12f954dbcbddbbc.1575914275.git.landen.chao@mediatek.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<cover.1575914275.git.landen.chao@mediatek.com>",
        "References": "<cover.1575914275.git.landen.chao@mediatek.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-MTK": "N",
        "Content-Transfer-Encoding": "base64",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Add devicetree binding to support the compatible mt7531 switch as used\nin the MediaTek MT7531 switch.\n\nSigned-off-by: Sean Wang <sean.wang@mediatek.com>\nSigned-off-by: Landen Chao <landen.chao@mediatek.com>\n---\n .../devicetree/bindings/net/dsa/mt7530.txt    | 77 ++++++++++++++++++-\n 1 file changed, 74 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/Documentation/devicetree/bindings/net/dsa/mt7530.txt b/Documentation/devicetree/bindings/net/dsa/mt7530.txt\r\nindex c5ed5d25f642..dc226a4e402a 100644\r\n--- a/Documentation/devicetree/bindings/net/dsa/mt7530.txt\r\n+++ b/Documentation/devicetree/bindings/net/dsa/mt7530.txt\r\n@@ -5,6 +5,7 @@ Required properties:\r\n \r\n - compatible: may be compatible = \"mediatek,mt7530\"\r\n \tor compatible = \"mediatek,mt7621\"\r\n+\tor compatible = \"mediatek,mt7531\"\r\n - #address-cells: Must be 1.\r\n - #size-cells: Must be 0.\r\n - mediatek,mcm: Boolean; if defined, indicates that either MT7530 is the part\r\n@@ -32,10 +33,13 @@ Required properties for the child nodes within ports container:\r\n \r\n - reg: Port address described must be 6 for CPU port and from 0 to 5 for\r\n \tuser ports.\r\n-- phy-mode: String, must be either \"trgmii\" or \"rgmii\" for port labeled\r\n-\t \"cpu\".\r\n+- phy-mode: String, the follow value would be acceptable for port labeled \"cpu\"\r\n+\tIf compatible mediatek,mt7530 or mediatek,mt7621 is set,\r\n+\tmust be either \"trgmii\" or \"rgmii\"\r\n+\tIf compatible mediatek,mt7531 is set,\r\n+\tmust be either \"sgmii\", \"1000base-x\" or \"2500base-x\"\r\n \r\n-Port 5 of the switch is muxed between:\r\n+Port 5 of mt7530 and mt7621 switch is muxed between:\r\n 1. GMAC5: GMAC5 can interface with another external MAC or PHY.\r\n 2. PHY of port 0 or port 4: PHY interfaces with an external MAC like 2nd GMAC\r\n    of the SOC. Used in many setups where port 0/4 becomes the WAN port.\r\n@@ -308,3 +312,70 @@ Example 3: MT7621: Port 5 is connected to external PHY: Port 5 -> external PHY.\r\n \t\t};\r\n \t};\r\n };\r\n+\r\n+Example 4:\r\n+\r\n+&eth {\r\n+\tgmac0: mac@0 {\r\n+\t\tcompatible = \"mediatek,eth-mac\";\r\n+\t\treg = <0>;\r\n+\t\tphy-mode = \"2500base-x\";\r\n+\r\n+\t\tfixed-link {\r\n+\t\t\tspeed = <1000>;\r\n+\t\t\tfull-duplex;\r\n+\t\t\tpause;\r\n+\t\t};\r\n+\t};\r\n+\r\n+\t&mdio0 {\r\n+\t\tswitch@0 {\r\n+\t\t\tcompatible = \"mediatek,mt7531\";\r\n+\t\t\treg = <0>;\r\n+\t\t\treset-gpios = <&pio 54 0>;\r\n+\r\n+\t\t\tports {\r\n+\t\t\t\t#address-cells = <1>;\r\n+\t\t\t\t#size-cells = <0>;\r\n+\t\t\t\treg = <0>;\r\n+\r\n+\t\t\t\tport@0 {\r\n+\t\t\t\t\treg = <0>;\r\n+\t\t\t\t\tlabel = \"lan0\";\r\n+\t\t\t\t};\r\n+\r\n+\t\t\t\tport@1 {\r\n+\t\t\t\t\treg = <1>;\r\n+\t\t\t\t\tlabel = \"lan1\";\r\n+\t\t\t\t};\r\n+\r\n+\t\t\t\tport@2 {\r\n+\t\t\t\t\treg = <2>;\r\n+\t\t\t\t\tlabel = \"lan2\";\r\n+\t\t\t\t};\r\n+\r\n+\t\t\t\tport@3 {\r\n+\t\t\t\t\treg = <3>;\r\n+\t\t\t\t\tlabel = \"lan3\";\r\n+\t\t\t\t};\r\n+\r\n+\t\t\t\tport@4 {\r\n+\t\t\t\t\treg = <4>;\r\n+\t\t\t\t\tlabel = \"wan\";\r\n+\t\t\t\t};\r\n+\r\n+\t\t\t\tport@6 {\r\n+\t\t\t\t\treg = <6>;\r\n+\t\t\t\t\tlabel = \"cpu\";\r\n+\t\t\t\t\tethernet = <&gmac0>;\r\n+\t\t\t\t\tphy-mode = \"2500base-x\";\r\n+\r\n+\t\t\t\t\tfixed-link {\r\n+\t\t\t\t\t\tspeed = <1000>;\r\n+\t\t\t\t\t\tfull-duplex;\r\n+\t\t\t\t\t\tpause;\r\n+\t\t\t\t\t};\r\n+\t\t\t\t};\r\n+\t\t\t};\r\n+\t\t};\r\n+\t};\r\n",
    "prefixes": [
        "net-next",
        "3/6"
    ]
}