get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 709881,
    "url": "http://patchwork.ozlabs.org/api/patches/709881/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1483150398-35222-1-git-send-email-donald.c.skidmore@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": "<1483150398-35222-1-git-send-email-donald.c.skidmore@intel.com>",
    "list_archive_url": null,
    "date": "2016-12-31T02:13:18",
    "name": "[3/3] ixgbe: list X553 backplane speeds correctly",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "91d0b509c3bd4059f45ec0ce6a4bed3eba3a6a75",
    "submitter": {
        "id": 4487,
        "url": "http://patchwork.ozlabs.org/api/people/4487/?format=api",
        "name": "Skidmore, Donald C",
        "email": "donald.c.skidmore@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/1483150398-35222-1-git-send-email-donald.c.skidmore@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/709881/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/709881/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 fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3tr54g11wtz9t10\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 31 Dec 2016 12:15:47 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 74026867D3;\n\tSat, 31 Dec 2016 01:15:45 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id KYCY953jbQcE; Sat, 31 Dec 2016 01:15:43 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id E4E9285259;\n\tSat, 31 Dec 2016 01:15:43 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 67DA51C03B7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSat, 31 Dec 2016 01:15:42 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 62F5586700\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSat, 31 Dec 2016 01:15:42 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id jhK781yb-EwB for <intel-wired-lan@lists.osuosl.org>;\n\tSat, 31 Dec 2016 01:15:41 +0000 (UTC)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id A8DA085259\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSat, 31 Dec 2016 01:15:41 +0000 (UTC)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga104.fm.intel.com with ESMTP; 30 Dec 2016 17:15:41 -0800",
            "from dcskidmo-m40.jf.intel.com ([134.134.3.124])\n\tby orsmga003.jf.intel.com with ESMTP; 30 Dec 2016 17:15:41 -0800"
        ],
        "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.33,432,1477983600\"; d=\"scan'208\";a=\"917587741\"",
        "From": "Donald C Skidmore <donald.c.skidmore@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Fri, 30 Dec 2016 21:13:18 -0500",
        "Message-Id": "<1483150398-35222-1-git-send-email-donald.c.skidmore@intel.com>",
        "X-Mailer": "git-send-email 2.4.3",
        "Subject": "[Intel-wired-lan] [PATCH 3/3] ixgbe: list X553 backplane speeds\n\tcorrectly",
        "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>",
        "MIME-Version": "1.0",
        "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": "We forgot to indicate some of the supported speed on the X553\nbackplane.  This patch attempts to correct for that.\n\nSigned-off-by: Don Skidmore <donald.c.skidmore@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_type.h |  5 +++++\n drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 14 ++++++++++++++\n 2 files changed, 19 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h\nindex 22869aa..f5fdd9b 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h\n@@ -3775,6 +3775,11 @@ struct ixgbe_info {\n \n #define IXGBE_NW_MNG_IF_SEL\t\t0x00011178\n #define IXGBE_NW_MNG_IF_SEL_MDIO_ACT\t\tBIT(1)\n+#define IXGBE_NW_MNG_IF_SEL_PHY_SPEED_10M\tBIT(17)\n+#define IXGBE_NW_MNG_IF_SEL_PHY_SPEED_100M\tBIT(18)\n+#define IXGBE_NW_MNG_IF_SEL_PHY_SPEED_1G\tBIT(19)\n+#define IXGBE_NW_MNG_IF_SEL_PHY_SPEED_2_5G\tBIT(20)\n+#define IXGBE_NW_MNG_IF_SEL_PHY_SPEED_10G\tBIT(21)\n #define IXGBE_NW_MNG_IF_SEL_ENABLE_10_100M\tBIT(23)\n #define IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE\tBIT(24)\n #define IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT\t3\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\nindex 70171e7..27340e7 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n@@ -2241,6 +2241,20 @@ static s32 ixgbe_get_link_capabilities_X550em(struct ixgbe_hw *hw,\n \t\tcase ixgbe_phy_sgmii:\n \t\t\t*speed = IXGBE_LINK_SPEED_1GB_FULL;\n \t\t\tbreak;\n+\t\tcase ixgbe_phy_x550em_kr:\n+\t\t\tif (hw->mac.type == ixgbe_mac_x550em_a) {\n+\t\t\t\t/* check different backplane modes */\n+\t\t\t\tif (hw->phy.nw_mng_if_sel &\n+\t\t\t\t    IXGBE_NW_MNG_IF_SEL_PHY_SPEED_2_5G) {\n+\t\t\t\t\t*speed = IXGBE_LINK_SPEED_2_5GB_FULL;\n+\t\t\t\t\tbreak;\n+\t\t\t\t} else if (hw->device_id ==\n+\t\t\t\t\t   IXGBE_DEV_ID_X550EM_A_KR_L) {\n+\t\t\t\t\t*speed = IXGBE_LINK_SPEED_1GB_FULL;\n+\t\t\t\t\tbreak;\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\t/* fall through */\n \t\tdefault:\n \t\t\t*speed = IXGBE_LINK_SPEED_10GB_FULL |\n \t\t\t\t IXGBE_LINK_SPEED_1GB_FULL;\n",
    "prefixes": [
        "3/3"
    ]
}