get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1370221,
    "url": "http://patchwork.ozlabs.org/api/patches/1370221/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20200924015746.7994-1-xiaoliang.yang_1@nxp.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": "<20200924015746.7994-1-xiaoliang.yang_1@nxp.com>",
    "list_archive_url": null,
    "date": "2020-09-24T01:57:46",
    "name": "[net] net: dsa: felix: convert TAS link speed based on phylink speed",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "ebe35182156241361a7ab14b0acc835430a8968c",
    "submitter": {
        "id": 74132,
        "url": "http://patchwork.ozlabs.org/api/people/74132/?format=api",
        "name": "Xiaoliang Yang",
        "email": "xiaoliang.yang_1@nxp.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/20200924015746.7994-1-xiaoliang.yang_1@nxp.com/mbox/",
    "series": [
        {
            "id": 203824,
            "url": "http://patchwork.ozlabs.org/api/series/203824/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=203824",
            "date": "2020-09-24T01:57:46",
            "name": "[net] net: dsa: felix: convert TAS link speed based on phylink speed",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/203824/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1370221/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1370221/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;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=23.128.96.18; helo=vger.kernel.org;\n envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>)",
            "ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=nxp.com"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [23.128.96.18])\n\tby ozlabs.org (Postfix) with ESMTP id 4Bxdgn35zZz9sSt\n\tfor <patchwork-incoming-netdev@ozlabs.org>;\n Thu, 24 Sep 2020 12:06:13 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n        id S1726462AbgIXCGK (ORCPT\n        <rfc822;patchwork-incoming-netdev@ozlabs.org>);\n        Wed, 23 Sep 2020 22:06:10 -0400",
            "from inva020.nxp.com ([92.121.34.13]:36340 \"EHLO inva020.nxp.com\"\n        rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n        id S1725208AbgIXCGK (ORCPT <rfc822;netdev@vger.kernel.org>);\n        Wed, 23 Sep 2020 22:06:10 -0400",
            "from inva020.nxp.com (localhost [127.0.0.1])\n        by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B85551A0489;\n        Thu, 24 Sep 2020 04:06:08 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n        by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E42D11A0CD5;\n        Thu, 24 Sep 2020 04:06:03 +0200 (CEST)",
            "from localhost.localdomain (mega.ap.freescale.net [10.192.208.232])\n        by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B8A4D4029A;\n        Thu, 24 Sep 2020 04:05:57 +0200 (CEST)"
        ],
        "From": "Xiaoliang Yang <xiaoliang.yang_1@nxp.com>",
        "To": "xiaoliang.yang_1@nxp.com, davem@davemloft.net,\n        netdev@vger.kernel.org, linux-kernel@vger.kernel.org,\n        allan.nielsen@microchip.com, joergen.andreasen@microchip.com,\n        UNGLinuxDriver@microchip.com, alexandru.marginean@nxp.com,\n        po.liu@nxp.com, claudiu.manoil@nxp.com, vladimir.oltean@nxp.com,\n        leoyang.li@nxp.com",
        "Subject": "[net] net: dsa: felix: convert TAS link speed based on phylink speed",
        "Date": "Thu, 24 Sep 2020 09:57:46 +0800",
        "Message-Id": "<20200924015746.7994-1-xiaoliang.yang_1@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "state->speed holds a value of 10, 100, 1000 or 2500, but\nQSYS_TAG_CONFIG_LINK_SPEED expects a value of 0, 1, 2, 3. So convert the\nspeed to a proper value.\n\nFixes: de143c0e274b (\"net: dsa: felix: Configure Time-Aware Scheduler via taprio offload\")\nSigned-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>\nReviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>\n---\n drivers/net/dsa/ocelot/felix_vsc9959.c | 22 +++++++++++++++++++++-\n 1 file changed, 21 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/dsa/ocelot/felix_vsc9959.c b/drivers/net/dsa/ocelot/felix_vsc9959.c\nindex 6855c94256f8..36db631a55e6 100644\n--- a/drivers/net/dsa/ocelot/felix_vsc9959.c\n+++ b/drivers/net/dsa/ocelot/felix_vsc9959.c\n@@ -1284,8 +1284,28 @@ void vsc9959_mdio_bus_free(struct ocelot *ocelot)\n static void vsc9959_sched_speed_set(struct ocelot *ocelot, int port,\n \t\t\t\t    u32 speed)\n {\n+\tu8 tas_speed;\n+\n+\tswitch (speed) {\n+\tcase SPEED_10:\n+\t\ttas_speed = OCELOT_SPEED_10;\n+\t\tbreak;\n+\tcase SPEED_100:\n+\t\ttas_speed = OCELOT_SPEED_100;\n+\t\tbreak;\n+\tcase SPEED_1000:\n+\t\ttas_speed = OCELOT_SPEED_1000;\n+\t\tbreak;\n+\tcase SPEED_2500:\n+\t\ttas_speed = OCELOT_SPEED_2500;\n+\t\tbreak;\n+\tdefault:\n+\t\ttas_speed = OCELOT_SPEED_1000;\n+\t\tbreak;\n+\t}\n+\n \tocelot_rmw_rix(ocelot,\n-\t\t       QSYS_TAG_CONFIG_LINK_SPEED(speed),\n+\t\t       QSYS_TAG_CONFIG_LINK_SPEED(tas_speed),\n \t\t       QSYS_TAG_CONFIG_LINK_SPEED_M,\n \t\t       QSYS_TAG_CONFIG, port);\n }\n",
    "prefixes": [
        "net"
    ]
}