get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 482391,
    "url": "http://patchwork.ozlabs.org/api/patches/482391/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/f60bcfb3d2cf6db3c53fe84b1620dad209976300.1433877893.git.yanirx.lubetkin@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": "<f60bcfb3d2cf6db3c53fe84b1620dad209976300.1433877893.git.yanirx.lubetkin@intel.com>",
    "list_archive_url": null,
    "date": "2015-06-09T22:15:51",
    "name": "[1/5] e1000e: synchronization of MAC-PHY interface only on non- ME systems",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "3ef5c532536d77d95ce61a020d1ac52a4decb212",
    "submitter": {
        "id": 66154,
        "url": "http://patchwork.ozlabs.org/api/people/66154/?format=api",
        "name": "Yanir Lubetkin",
        "email": "yanirx.lubetkin@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/f60bcfb3d2cf6db3c53fe84b1620dad209976300.1433877893.git.yanirx.lubetkin@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/482391/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/482391/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\tby ozlabs.org (Postfix) with ESMTP id 05A3B140758\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 10 Jun 2015 08:16:40 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 038BA8B7D0;\n\tTue,  9 Jun 2015 22:16:40 +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 ufLGTF3b7Yya; Tue,  9 Jun 2015 22:16:39 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 60ABC8B0CE;\n\tTue,  9 Jun 2015 22:16:39 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 929101C1E80\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  9 Jun 2015 22:16:38 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 8C466322AB\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  9 Jun 2015 22:16:38 +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 iHhRQ5vnKzKz for <intel-wired-lan@lists.osuosl.org>;\n\tTue,  9 Jun 2015 22:16:37 +0000 (UTC)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby silver.osuosl.org (Postfix) with ESMTP id EAB9932271\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  9 Jun 2015 22:16:37 +0000 (UTC)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby orsmga102.jf.intel.com with ESMTP; 09 Jun 2015 15:16:38 -0700",
            "from unknown (HELO ccdpc064.localdomain.com) ([143.185.160.80])\n\tby FMSMGA003.fm.intel.com with ESMTP; 09 Jun 2015 15:16:36 -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.13,584,1427785200\"; d=\"scan'208\";a=\"505776141\"",
        "From": "Yanir Lubetkin <yanirx.lubetkin@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Wed, 10 Jun 2015 01:15:51 +0300",
        "Message-Id": "<f60bcfb3d2cf6db3c53fe84b1620dad209976300.1433877893.git.yanirx.lubetkin@intel.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "Subject": "[Intel-wired-lan] [PATCH 1/5] e1000e: synchronization of MAC-PHY\n\tinterface only on non- ME systems",
        "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": "On power up, the MAC - PHY interface needs to be set to PCIe, even if\ncable is disconnected.  In ME systems, the ME handles this on exit from\nSx state. In non-ME, the driver handles it. Added a check for non-ME\nsystem to the driver code that handles that.\n\nSigned-off-by: Yanir Lubetkin <yanirx.lubetkin@intel.com>\n---\n drivers/net/ethernet/intel/e1000e/ich8lan.c | 22 ++++++++++++----------\n 1 file changed, 12 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel/e1000e/ich8lan.c\nindex b074b9a..c742a4f 100644\n--- a/drivers/net/ethernet/intel/e1000e/ich8lan.c\n+++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c\n@@ -237,17 +237,19 @@ static bool e1000_phy_is_accessible_pchlan(struct e1000_hw *hw)\n \tif (ret_val)\n \t\treturn false;\n out:\n-\tif ((hw->mac.type == e1000_pch_lpt) ||\n-\t    (hw->mac.type == e1000_pch_spt)) {\n-\t\t/* Unforce SMBus mode in PHY */\n-\t\te1e_rphy_locked(hw, CV_SMB_CTRL, &phy_reg);\n-\t\tphy_reg &= ~CV_SMB_CTRL_FORCE_SMBUS;\n-\t\te1e_wphy_locked(hw, CV_SMB_CTRL, phy_reg);\n+\tif ((hw->mac.type == e1000_pch_lpt) || (hw->mac.type == e1000_pch_spt)) {\n+\t\t/* Only unforce SMBus if ME is not active */\n+\t\tif (!(er32(FWSM) & E1000_ICH_FWSM_FW_VALID)) {\n+\t\t\t/* Unforce SMBus mode in PHY */\n+\t\t\te1e_rphy_locked(hw, CV_SMB_CTRL, &phy_reg);\n+\t\t\tphy_reg &= ~CV_SMB_CTRL_FORCE_SMBUS;\n+\t\t\te1e_wphy_locked(hw, CV_SMB_CTRL, phy_reg);\n \n-\t\t/* Unforce SMBus mode in MAC */\n-\t\tmac_reg = er32(CTRL_EXT);\n-\t\tmac_reg &= ~E1000_CTRL_EXT_FORCE_SMBUS;\n-\t\tew32(CTRL_EXT, mac_reg);\n+\t\t\t/* Unforce SMBus mode in MAC */\n+\t\t\tmac_reg = er32(CTRL_EXT);\n+\t\t\tmac_reg &= ~E1000_CTRL_EXT_FORCE_SMBUS;\n+\t\t\tew32(CTRL_EXT, mac_reg);\n+\t\t}\n \t}\n \n \treturn true;\n",
    "prefixes": [
        "1/5"
    ]
}