get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 604989,
    "url": "http://patchwork.ozlabs.org/api/patches/604989/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20160401191830.120975.11300.stgit@mdrustad-wks.jf.intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20160401191830.120975.11300.stgit@mdrustad-wks.jf.intel.com>",
    "list_archive_url": null,
    "date": "2016-04-01T19:18:30",
    "name": "[V5,07/11] ixgbe: Introduce function to control MDIO speed",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "5f69b8f5e6a2f7d19bb916ec5abfc7f0c30dd302",
    "submitter": {
        "id": 13252,
        "url": "http://patchwork.ozlabs.org/api/people/13252/?format=api",
        "name": "Rustad, Mark D",
        "email": "mark.d.rustad@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20160401191830.120975.11300.stgit@mdrustad-wks.jf.intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/604989/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/604989/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id 3qcB4l6RRjz9sD3\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Apr 2016 06:18:47 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 303C332D36;\n\tFri,  1 Apr 2016 19:18:47 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 1AEt5ox2tQ00; Fri,  1 Apr 2016 19:18:43 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 3864B2D872;\n\tFri,  1 Apr 2016 19:18:39 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id E122D1C11DF\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  1 Apr 2016 19:18:37 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id D1EA625D62\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  1 Apr 2016 19:18:37 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id xUmPnf51eFvL for <intel-wired-lan@lists.osuosl.org>;\n\tFri,  1 Apr 2016 19:18:35 +0000 (UTC)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby silver.osuosl.org (Postfix) with ESMTP id 0CD4D26E15\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  1 Apr 2016 19:18:31 +0000 (UTC)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga102.jf.intel.com with ESMTP; 01 Apr 2016 12:18:30 -0700",
            "from mdrustad-wks.jf.intel.com ([134.134.3.71])\n\tby orsmga003.jf.intel.com with ESMTP; 01 Apr 2016 12:18:30 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.24,428,1455004800\"; d=\"scan'208\";a=\"776382638\"",
        "From": "Mark D Rustad <mark.d.rustad@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Fri, 01 Apr 2016 12:18:30 -0700",
        "Message-ID": "<20160401191830.120975.11300.stgit@mdrustad-wks.jf.intel.com>",
        "In-Reply-To": "<20160401191701.120975.34684.stgit@mdrustad-wks.jf.intel.com>",
        "References": "<20160401191701.120975.34684.stgit@mdrustad-wks.jf.intel.com>",
        "User-Agent": "StGit/unknown-version",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH V5 07/11] ixgbe: Introduce function to\n\tcontrol MDIO speed",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "Move code that controls MDIO speed into a new function because\nthere will be more MACs that need the control.\n\nSigned-off-by: Mark Rustad <mark.d.rustad@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c |   27 +++++++++++++++++++------\n 1 file changed, 21 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\nindex ec06dd4f9804..8a6579feaf08 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n@@ -2306,6 +2306,26 @@ static s32 ixgbe_init_ext_t_x550em(struct ixgbe_hw *hw)\n \treturn status;\n }\n \n+/**\n+ * ixgbe_set_mdio_speed - Set MDIO clock speed\n+ * @hw: pointer to hardware structure\n+ */\n+static void ixgbe_set_mdio_speed(struct ixgbe_hw *hw)\n+{\n+\tu32 hlreg0;\n+\n+\tswitch (hw->device_id) {\n+\tcase IXGBE_DEV_ID_X550EM_X_10G_T:\n+\t\t/* Config MDIO clock speed before the first MDIO PHY access */\n+\t\thlreg0 = IXGBE_READ_REG(hw, IXGBE_HLREG0);\n+\t\thlreg0 &= ~IXGBE_HLREG0_MDCSPD;\n+\t\tIXGBE_WRITE_REG(hw, IXGBE_HLREG0, hlreg0);\n+\t\tbreak;\n+\tdefault:\n+\t\tbreak;\n+\t}\n+}\n+\n /**  ixgbe_reset_hw_X550em - Perform hardware reset\n  **  @hw: pointer to hardware structure\n  **\n@@ -2319,7 +2339,6 @@ static s32 ixgbe_reset_hw_X550em(struct ixgbe_hw *hw)\n \ts32 status;\n \tu32 ctrl = 0;\n \tu32 i;\n-\tu32 hlreg0;\n \tbool link_up = false;\n \n \t/* Call adapter stop to disable Tx/Rx and clear interrupts */\n@@ -2405,11 +2424,7 @@ mac_reset_top:\n \thw->mac.num_rar_entries = 128;\n \thw->mac.ops.init_rx_addrs(hw);\n \n-\tif (hw->device_id == IXGBE_DEV_ID_X550EM_X_10G_T) {\n-\t\thlreg0 = IXGBE_READ_REG(hw, IXGBE_HLREG0);\n-\t\thlreg0 &= ~IXGBE_HLREG0_MDCSPD;\n-\t\tIXGBE_WRITE_REG(hw, IXGBE_HLREG0, hlreg0);\n-\t}\n+\tixgbe_set_mdio_speed(hw);\n \n \tif (hw->device_id == IXGBE_DEV_ID_X550EM_X_SFP)\n \t\tixgbe_setup_mux_ctl(hw);\n",
    "prefixes": [
        "V5",
        "07/11"
    ]
}