get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 491622,
    "url": "http://patchwork.ozlabs.org/api/patches/491622/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1436190480-20941-1-git-send-email-raanan.avargil@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": "<1436190480-20941-1-git-send-email-raanan.avargil@intel.com>",
    "list_archive_url": null,
    "date": "2015-07-06T13:48:00",
    "name": "e1000e: Fix EEE in Sx implementation",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "4c9a346d7d92083c562867b3c1ba3f3f57819091",
    "submitter": {
        "id": 66787,
        "url": "http://patchwork.ozlabs.org/api/people/66787/?format=api",
        "name": "Raanan Avargil",
        "email": "raanan.avargil@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/1436190480-20941-1-git-send-email-raanan.avargil@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/491622/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/491622/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 33C9B140077\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon,  6 Jul 2015 23:48:40 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 4879925D30;\n\tMon,  6 Jul 2015 13:48:40 +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 FBQ7Tr1n47tE; Mon,  6 Jul 2015 13:48:36 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 777B73210F;\n\tMon,  6 Jul 2015 13:48:36 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 8587A1C268C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon,  6 Jul 2015 13:48:35 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 7EDCF333BD\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon,  6 Jul 2015 13:48:35 +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 cIXRQm5mUnzl for <intel-wired-lan@lists.osuosl.org>;\n\tMon,  6 Jul 2015 13:48:34 +0000 (UTC)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby silver.osuosl.org (Postfix) with ESMTP id 3356125D30\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon,  6 Jul 2015 13:48:34 +0000 (UTC)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga101.jf.intel.com with ESMTP; 06 Jul 2015 06:48:33 -0700",
            "from unknown (HELO ccdpc198.iil.intel.com) ([143.185.160.81])\n\tby orsmga003.jf.intel.com with ESMTP; 06 Jul 2015 06:48:32 -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.15,415,1432623600\"; d=\"scan'208\";a=\"600907119\"",
        "From": "Raanan Avargil <raanan.avargil@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Mon,  6 Jul 2015 16:48:00 +0300",
        "Message-Id": "<1436190480-20941-1-git-send-email-raanan.avargil@intel.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "Subject": "[Intel-wired-lan] [PATCH] e1000e: Fix EEE in Sx implementation",
        "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": "This patch implements the EEE in Sx code so that it only applies to parts\nthat support EEE in Sx (as opposed to all parts that support EEE).\nIt also uses the existing eee_advert and eee_lp_abiliity to set just the bits\n(100/1000) that should be set.\n\nSigned-off-by: Raanan Avargil <raanan.avargil@intel.com>\n---\n drivers/net/ethernet/intel/e1000e/netdev.c | 26 ++++++++++++++++++++++++++\n 1 file changed, 26 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c\nindex 6c153c1..1ca8e98 100644\n--- a/drivers/net/ethernet/intel/e1000e/netdev.c\n+++ b/drivers/net/ethernet/intel/e1000e/netdev.c\n@@ -6317,6 +6317,32 @@ static int __e1000_shutdown(struct pci_dev *pdev, bool runtime)\n \t\t\treturn retval;\n \t}\n \n+\t/* Ensure that the appropriate bits are set in LPI_CTRL\n+\t * for EEE in Sx\n+\t */\n+\tif ((hw->phy.type >= e1000_phy_i217) &&\n+\t    adapter->eee_advert && hw->dev_spec.ich8lan.eee_lp_ability) {\n+\t\tu16 lpi_ctrl = 0;\n+\t\tretval = hw->phy.ops.acquire(hw);\n+\t\tif (!retval) {\n+\t\t\tretval = e1e_rphy_locked(hw, I82579_LPI_CTRL,\n+\t\t\t\t\t\t &lpi_ctrl);\n+\t\t\tif (!retval) {\n+\t\t\t\tif (adapter->eee_advert &\n+\t\t\t\t    hw->dev_spec.ich8lan.eee_lp_ability &\n+\t\t\t\t    I82579_EEE_100_SUPPORTED)\n+\t\t\t\t\tlpi_ctrl |= I82579_LPI_CTRL_100_ENABLE;\n+\t\t\t\tif (adapter->eee_advert &\n+\t\t\t\t    hw->dev_spec.ich8lan.eee_lp_ability &\n+\t\t\t\t    I82579_EEE_1000_SUPPORTED)\n+\t\t\t\t\tlpi_ctrl |= I82579_LPI_CTRL_1000_ENABLE;\n+\n+\t\t\t\tretval = e1e_wphy_locked(hw, I82579_LPI_CTRL,\n+\t\t\t\t\t\t\t lpi_ctrl);\n+\t\t\t}\n+\t\t}\n+\t\thw->phy.ops.release(hw);\n+\t}\n \n \t/* Release control of h/w to f/w.  If f/w is AMT enabled, this\n \t * would have already happened in close and is redundant.\n",
    "prefixes": []
}