get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818981,
    "url": "http://patchwork.ozlabs.org/api/patches/818981/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170927073414.17361-7-clabbe.montjoie@gmail.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": "<20170927073414.17361-7-clabbe.montjoie@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-27T07:34:09",
    "name": "[v6,06/11] ARM: dts: sunxi: h3/h5: represent the mdio switch used by sun8i-h3-emac",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "d8cfb31652f2df40cf2d9508d5cf6ad6c92d1192",
    "submitter": {
        "id": 64152,
        "url": "http://patchwork.ozlabs.org/api/people/64152/?format=api",
        "name": "Corentin Labbe",
        "email": "clabbe.montjoie@gmail.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/20170927073414.17361-7-clabbe.montjoie@gmail.com/mbox/",
    "series": [
        {
            "id": 5300,
            "url": "http://patchwork.ozlabs.org/api/series/5300/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=5300",
            "date": "2017-09-27T07:34:14",
            "name": "net: stmmac: dwmac-sun8i: Handle integrated PHY",
            "version": 6,
            "mbox": "http://patchwork.ozlabs.org/series/5300/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818981/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818981/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"soR2tXWY\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y28nW2rrFz9t33\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 17:38:23 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752267AbdI0Hgo (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 27 Sep 2017 03:36:44 -0400",
            "from mail-wr0-f195.google.com ([209.85.128.195]:37096 \"EHLO\n\tmail-wr0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752189AbdI0Hgl (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 27 Sep 2017 03:36:41 -0400",
            "by mail-wr0-f195.google.com with SMTP id u48so3660200wrf.4;\n\tWed, 27 Sep 2017 00:36:40 -0700 (PDT)",
            "from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr.\n\t[90.118.159.96]) by smtp.googlemail.com with ESMTPSA id\n\tn9sm5660526wmd.12.2017.09.27.00.36.38\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 27 Sep 2017 00:36:39 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=H+hS6G+8Q1+wK9BPZFQUMqF5oPKEQ1vwNbdOr4ut67U=;\n\tb=soR2tXWYvyxDug9p7F/cMkFJlBvgcHAJng1008abLNDYhgxB7NT4YN1AGmuUAxRgI5\n\tDEamiDcDu+U30xISoPI9zjadM1zTh77RIH2GrU/zY9pTH88ptZ+P4mlCkHa/GtpQ8C7n\n\tKLoBfApp9p4PCZlIOHR4QpPR4yKPXCkQ6v+W1FB21VPlTvH+Y8eK8munk2slgtivdGHS\n\tQkFcf3BhlBjs+ciQHlP6vvPjEFrIECpDDosQwjxXiWbuI66odthUHaqWNYTVjyX/iRjq\n\t43W1z1nVILuV7t8QBoL9YGCRoty5IVN5GhG3kd1bjRHq79ChDpQINNxfvqytICRmz1y+\n\tHK+g==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=H+hS6G+8Q1+wK9BPZFQUMqF5oPKEQ1vwNbdOr4ut67U=;\n\tb=a7LBMwaKeNo9wrcDmmugRMhx0Z3V1BXKwc6U4JBFuMToY2Cve5PemoLo1QABABSd7D\n\tYZmBMCQqJOyznWa1rdAweK0iHV1HQ/g5nCLf1boPhYXEokOt8h/d+g4QaAZ14gl3jmMY\n\tCzZgmWL2yg+qkJ9T0OuX9WEuZFzInpkNMtbb/6Qt7BKl4+6R4VRQy/Avt544OFiAIoFj\n\tlI5YlGPjD0+DE6IXi0GydIMnlhMRJRn7fsD0beP0evecn9CNKCVlI4hld7PEizQn7QFR\n\tdJw1TIg6W4jDujO0xSNWoGeqAQORCVIlXYWZ+UKuiPt6FPapjsw1iZt6feizRmaKb3oc\n\tqgrg==",
        "X-Gm-Message-State": "AHPjjUj1Td85gknpI0NoejDvV3Ygj84Gzev0M6w4H32JpdZ4lgYL70Oc\n\thygrzglQUVGIet+DEIAmbsU=",
        "X-Google-Smtp-Source": "AOwi7QBJTPxrKTk3LJmlBMnQLWZOXti4rxGRIBshR8SLeDzxQbL5rOINrngwHNCR7WyFnA7gaTwraQ==",
        "X-Received": "by 10.223.157.198 with SMTP id q6mr525424wre.102.1506497799932; \n\tWed, 27 Sep 2017 00:36:39 -0700 (PDT)",
        "From": "Corentin Labbe <clabbe.montjoie@gmail.com>",
        "To": "robh+dt@kernel.org, mark.rutland@arm.com,\n\tmaxime.ripard@free-electrons.com, wens@csie.org,\n\tlinux@armlinux.org.uk, catalin.marinas@arm.com,\n\twill.deacon@arm.com, peppe.cavallaro@st.com,\n\talexandre.torgue@st.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\tfrowand.list@gmail.com",
        "Cc": "netdev@vger.kernel.org, devicetree@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org,\n\tlinux-sunxi@googlegroups.com, Corentin Labbe <clabbe.montjoie@gmail.com>",
        "Subject": "[PATCH v6 06/11] ARM: dts: sunxi: h3/h5: represent the mdio switch\n\tused by sun8i-h3-emac",
        "Date": "Wed, 27 Sep 2017 09:34:09 +0200",
        "Message-Id": "<20170927073414.17361-7-clabbe.montjoie@gmail.com>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170927073414.17361-1-clabbe.montjoie@gmail.com>",
        "References": "<20170927073414.17361-1-clabbe.montjoie@gmail.com>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Since dwmac-sun8i could use either an integrated PHY or an external PHY\n(which could be at same MDIO address), we need to represent this selection\nby a MDIO switch.\n\nSigned-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>\n---\n arch/arm/boot/dts/sunxi-h3-h5.dtsi | 31 +++++++++++++++++++++++++------\n 1 file changed, 25 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi\nindex 3b7d953429a6..a8e9b8f378ba 100644\n--- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi\n+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi\n@@ -422,14 +422,33 @@\n \t\t\t#size-cells = <0>;\n \t\t\tstatus = \"disabled\";\n \n-\t\t\tmdio: mdio {\n+\t\t\tmdio0: mdio {\n \t\t\t\t#address-cells = <1>;\n \t\t\t\t#size-cells = <0>;\n-\t\t\t\tint_mii_phy: ethernet-phy@1 {\n-\t\t\t\t\tcompatible = \"ethernet-phy-ieee802.3-c22\";\n-\t\t\t\t\treg = <1>;\n-\t\t\t\t\tclocks = <&ccu CLK_BUS_EPHY>;\n-\t\t\t\t\tresets = <&ccu RST_BUS_EPHY>;\n+\t\t\t\tcompatible = \"snps,dwmac-mdio\";\n+\n+\t\t\t\tmdio-mux {\n+\t\t\t\t\tcompatible = \"mdio-mux\";\n+\t\t\t\t\t#address-cells = <1>;\n+\t\t\t\t\t#size-cells = <0>;\n+\t\t\t\t\t/* Only one MDIO is usable at the time */\n+\t\t\t\t\tinternal_mdio: mdio@1 {\n+\t\t\t\t\t\treg = <1>;\n+\t\t\t\t\t\t#address-cells = <1>;\n+\t\t\t\t\t\t#size-cells = <0>;\n+\t\t\t\t\t\tint_mii_phy: ethernet-phy@1 {\n+\t\t\t\t\t\t\tcompatible = \"ethernet-phy-ieee802.3-c22\";\n+\t\t\t\t\t\t\treg = <1>;\n+\t\t\t\t\t\t\tclocks = <&ccu CLK_BUS_EPHY>;\n+\t\t\t\t\t\t\tresets = <&ccu RST_BUS_EPHY>;\n+\t\t\t\t\t\t\tphy-is-integrated;\n+\t\t\t\t\t\t};\n+\t\t\t\t\t};\n+\t\t\t\t\tmdio: mdio@2 {\n+\t\t\t\t\t\treg = <2>;\n+\t\t\t\t\t\t#address-cells = <1>;\n+\t\t\t\t\t\t#size-cells = <0>;\n+\t\t\t\t\t};\n \t\t\t\t};\n \t\t\t};\n \t\t};\n",
    "prefixes": [
        "v6",
        "06/11"
    ]
}