get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818833,
    "url": "http://patchwork.ozlabs.org/api/patches/818833/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170926211535.21273-6-vivien.didelot@savoirfairelinux.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": "<20170926211535.21273-6-vivien.didelot@savoirfairelinux.com>",
    "list_archive_url": null,
    "date": "2017-09-26T21:15:35",
    "name": "[net-next,5/5] net: dsa: use phy_ethtool_nway_reset",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9a44bbe963a255a8837a222ac20fd07db304fb73",
    "submitter": {
        "id": 15889,
        "url": "http://patchwork.ozlabs.org/api/people/15889/?format=api",
        "name": "Vivien Didelot",
        "email": "vivien.didelot@savoirfairelinux.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170926211535.21273-6-vivien.didelot@savoirfairelinux.com/mbox/",
    "series": [
        {
            "id": 5231,
            "url": "http://patchwork.ozlabs.org/api/series/5231/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=5231",
            "date": "2017-09-26T21:15:33",
            "name": "net: dsa: use generic slave phydev",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/5231/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818833/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818833/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>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y1v4t28wDz9t3x\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 07:20:46 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S937392AbdIZVT1 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 26 Sep 2017 17:19:27 -0400",
            "from mail.savoirfairelinux.com ([208.88.110.44]:41192 \"EHLO\n\tmail.savoirfairelinux.com\" rhost-flags-OK-OK-OK-OK) by\n\tvger.kernel.org with ESMTP id S937220AbdIZVTZ (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 26 Sep 2017 17:19:25 -0400",
            "from localhost (localhost [127.0.0.1])\n\tby mail.savoirfairelinux.com (Postfix) with ESMTP id 0F89B9C2D7B;\n\tTue, 26 Sep 2017 17:19:24 -0400 (EDT)",
            "from mail.savoirfairelinux.com ([127.0.0.1])\n\tby localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new,\n\tport 10032)\n\twith ESMTP id J4ewgGK7_3cG; Tue, 26 Sep 2017 17:19:23 -0400 (EDT)",
            "from localhost (localhost [127.0.0.1])\n\tby mail.savoirfairelinux.com (Postfix) with ESMTP id 704F19C2981;\n\tTue, 26 Sep 2017 17:19:23 -0400 (EDT)",
            "from mail.savoirfairelinux.com ([127.0.0.1])\n\tby localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new,\n\tport 10026)\n\twith ESMTP id AyFc8GzExTwz; Tue, 26 Sep 2017 17:19:23 -0400 (EDT)",
            "from weeman.mtl.sfl (unknown [192.168.49.104])\n\tby mail.savoirfairelinux.com (Postfix) with ESMTPSA id 091E59C2DA8;\n\tTue, 26 Sep 2017 17:19:23 -0400 (EDT)"
        ],
        "X-Virus-Scanned": "amavisd-new at mail.savoirfairelinux.com",
        "From": "Vivien Didelot <vivien.didelot@savoirfairelinux.com>",
        "To": "netdev@vger.kernel.org",
        "Cc": "linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com,\n\t\"David S. Miller\" <davem@davemloft.net>,\n\tFlorian Fainelli <f.fainelli@gmail.com>, Andrew Lunn <andrew@lunn.ch>,\n\tVivien Didelot <vivien.didelot@savoirfairelinux.com>",
        "Subject": "[PATCH net-next 5/5] net: dsa: use phy_ethtool_nway_reset",
        "Date": "Tue, 26 Sep 2017 17:15:35 -0400",
        "Message-Id": "<20170926211535.21273-6-vivien.didelot@savoirfairelinux.com>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170926211535.21273-1-vivien.didelot@savoirfairelinux.com>",
        "References": "<20170926211535.21273-1-vivien.didelot@savoirfairelinux.com>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Use phy_ethtool_nway_reset now that dsa_slave_nway_reset does exactly\nthe same.\n\nSigned-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>\n---\n net/dsa/slave.c | 10 +---------\n 1 file changed, 1 insertion(+), 9 deletions(-)",
    "diff": "diff --git a/net/dsa/slave.c b/net/dsa/slave.c\nindex d2b632cae468..bf8800de13c1 100644\n--- a/net/dsa/slave.c\n+++ b/net/dsa/slave.c\n@@ -450,14 +450,6 @@ dsa_slave_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *_p)\n \t\tds->ops->get_regs(ds, p->dp->index, regs, _p);\n }\n \n-static int dsa_slave_nway_reset(struct net_device *dev)\n-{\n-\tif (!dev->phydev)\n-\t\treturn -ENODEV;\n-\n-\treturn genphy_restart_aneg(dev->phydev);\n-}\n-\n static u32 dsa_slave_get_link(struct net_device *dev)\n {\n \tif (!dev->phydev)\n@@ -888,7 +880,7 @@ static const struct ethtool_ops dsa_slave_ethtool_ops = {\n \t.get_drvinfo\t\t= dsa_slave_get_drvinfo,\n \t.get_regs_len\t\t= dsa_slave_get_regs_len,\n \t.get_regs\t\t= dsa_slave_get_regs,\n-\t.nway_reset\t\t= dsa_slave_nway_reset,\n+\t.nway_reset\t\t= phy_ethtool_nway_reset,\n \t.get_link\t\t= dsa_slave_get_link,\n \t.get_eeprom_len\t\t= dsa_slave_get_eeprom_len,\n \t.get_eeprom\t\t= dsa_slave_get_eeprom,\n",
    "prefixes": [
        "net-next",
        "5/5"
    ]
}