get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 71882,
    "url": "http://patches.dpdk.org/api/patches/71882/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200622064634.70941-16-guinanx.sun@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200622064634.70941-16-guinanx.sun@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200622064634.70941-16-guinanx.sun@intel.com",
    "date": "2020-06-22T06:45:39",
    "name": "[15/70] net/e1000/base: setup copper link function for i225",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4f590874c30ab38c856a39e4b74e1de3e4150d5b",
    "submitter": {
        "id": 1476,
        "url": "http://patches.dpdk.org/api/people/1476/?format=api",
        "name": "Guinan Sun",
        "email": "guinanx.sun@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200622064634.70941-16-guinanx.sun@intel.com/mbox/",
    "series": [
        {
            "id": 10543,
            "url": "http://patches.dpdk.org/api/series/10543/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10543",
            "date": "2020-06-22T06:45:24",
            "name": "update e1000 base code",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/10543/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/71882/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/71882/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 620AFA0350;\n\tMon, 22 Jun 2020 09:08:07 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 53E481C43E;\n\tMon, 22 Jun 2020 09:05:45 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 6305E1C2FA\n for <dev@dpdk.org>; Mon, 22 Jun 2020 09:05:41 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Jun 2020 00:05:41 -0700",
            "from dpdk.sh.intel.com ([10.239.255.83])\n by fmsmga001.fm.intel.com with ESMTP; 22 Jun 2020 00:05:38 -0700"
        ],
        "IronPort-SDR": [
            "\n SrijmS3F05+rlcAh3tgXBtrsLkiXdxzVkIKx9TYm06Mo1C5DlxNjHktHIca1PyJiD3F5RwW8Ea\n sM1Q+7OX4prQ==",
            "\n ZWAJaJbd8a3F3QoyRYeOkd3ZmGWvNPV//VO/AlbF955LAQJ923mfmiUVQrT9o/PLD7DYG1RSj5\n swJXNXOAzcLg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9659\"; a=\"141944747\"",
            "E=Sophos;i=\"5.75,266,1589266800\"; d=\"scan'208\";a=\"141944747\"",
            "E=Sophos;i=\"5.75,266,1589266800\"; d=\"scan'208\";a=\"384408844\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Guinan Sun <guinanx.sun@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Jeff Guo <jia.guo@intel.com>, Zhao1 Wei <wei.zhao1@intel.com>,\n Guinan Sun <guinanx.sun@intel.com>,\n Dany Trakhtenberg <Dany.Trakhtenberg@intel.com>",
        "Date": "Mon, 22 Jun 2020 06:45:39 +0000",
        "Message-Id": "<20200622064634.70941-16-guinanx.sun@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200622064634.70941-1-guinanx.sun@intel.com>",
        "References": "<20200622064634.70941-1-guinanx.sun@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 15/70] net/e1000/base: setup copper link function\n\tfor i225",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "A dedicated function for i225 that Configures the link for auto-neg\nor forced speed and duplex. It was taken from the\ne1000_setup_copper_link_82575 function in e1000_82575 file and was\nrefactored for i225 only.\n\nSigned-off-by: Dany Trakhtenberg <Dany.Trakhtenberg@intel.com>\nSigned-off-by: Guinan Sun <guinanx.sun@intel.com>\n---\n drivers/net/e1000/base/e1000_i225.c | 30 +++++++++++++++++++++++++++++\n drivers/net/e1000/base/e1000_phy.h  | 13 +++++++++++++\n 2 files changed, 43 insertions(+)",
    "diff": "diff --git a/drivers/net/e1000/base/e1000_i225.c b/drivers/net/e1000/base/e1000_i225.c\nindex 4ba6c45be..621dc6863 100644\n--- a/drivers/net/e1000/base/e1000_i225.c\n+++ b/drivers/net/e1000/base/e1000_i225.c\n@@ -124,6 +124,36 @@ void e1000_release_swfw_sync_i225(struct e1000_hw *hw, u16 mask)\n \te1000_put_hw_semaphore_generic(hw);\n }\n \n+/*\n+ * e1000_setup_copper_link_i225 - Configure copper link settings\n+ * @hw: pointer to the HW structure\n+ *\n+ * Configures the link for auto-neg or forced speed and duplex.  Then we check\n+ * for link, once link is established calls to configure collision distance\n+ * and flow control are called.\n+ */\n+s32 e1000_setup_copper_link_i225(struct e1000_hw *hw)\n+{\n+\tu32 phpm_reg;\n+\ts32 ret_val;\n+\tu32 ctrl;\n+\n+\tDEBUGFUNC(\"e1000_setup_copper_link_i225\");\n+\n+\tctrl = E1000_READ_REG(hw, E1000_CTRL);\n+\tctrl |= E1000_CTRL_SLU;\n+\tctrl &= ~(E1000_CTRL_FRCSPD | E1000_CTRL_FRCDPX);\n+\tE1000_WRITE_REG(hw, E1000_CTRL, ctrl);\n+\n+\tphpm_reg = E1000_READ_REG(hw, E1000_I225_PHPM);\n+\tphpm_reg &= ~E1000_I225_PHPM_GO_LINKD;\n+\tE1000_WRITE_REG(hw, E1000_I225_PHPM, phpm_reg);\n+\n+\tret_val = e1000_setup_copper_link_generic(hw);\n+\n+\treturn ret_val;\n+}\n+\n /* e1000_get_hw_semaphore_i225 - Acquire hardware semaphore\n  * @hw: pointer to the HW structure\n  *\ndiff --git a/drivers/net/e1000/base/e1000_phy.h b/drivers/net/e1000/base/e1000_phy.h\nindex 32e9d2620..3321bc0ba 100644\n--- a/drivers/net/e1000/base/e1000_phy.h\n+++ b/drivers/net/e1000/base/e1000_phy.h\n@@ -122,6 +122,19 @@ s32 e1000_write_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr,\n #define GS40G_MAC_SPEED_1G\t\t0X0006\n #define GS40G_COPPER_SPEC\t\t0x0010\n \n+#endif /* NO_I210_SUPPORT */\n+#ifndef NO_I225_SUPPORT\n+#define E1000_I225_PHPM\t\t\t0x0E14 /* I225 PHY Power Management */\n+#define E1000_I225_PHPM_DIS_1000_D3\t0x0008 /* Disable 1G in D3 */\n+#define E1000_I225_PHPM_LINK_ENERGY\t0x0010 /* Link Energy Detect */\n+#define E1000_I225_PHPM_GO_LINKD\t0x0020 /* Go Link Disconnect */\n+#define E1000_I225_PHPM_DIS_1000\t0x0040 /* Disable 1G globally */\n+#define E1000_I225_PHPM_SPD_B2B_EN\t0x0080 /* Smart Power Down Back2Back */\n+#define E1000_I225_PHPM_RST_COMPL\t0x0100 /* PHY Reset Completed */\n+#define E1000_I225_PHPM_DIS_100_D3\t0x0200 /* Disable 100M in D3 */\n+#define E1000_I225_PHPM_ULP\t\t0x0400 /* Ultra Low-Power Mode */\n+#define E1000_I225_PHPM_DIS_2500\t0x0800 /* Disable 2.5G globally */\n+#define E1000_I225_PHPM_DIS_2500_D3\t0x1000 /* Disable 2.5G in D3 */\n /* GPY211 - I225 defines */\n #define GPY_MMD_MASK\t\t\t0xFFFF0000\n #define GPY_MMD_SHIFT\t\t\t16\n",
    "prefixes": [
        "15/70"
    ]
}