get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 479504,
    "url": "http://patchwork.ozlabs.org/api/patches/479504/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/0b084820b85c25826686f51a078c5b95fe2dd696.1433253642.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": "<0b084820b85c25826686f51a078c5b95fe2dd696.1433253642.git.yanirx.lubetkin@intel.com>",
    "list_archive_url": null,
    "date": "2015-06-02T14:05:47",
    "name": "[v2,4/5] e1000e: fix unit hang during loopback test",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "64d7cb35fca3b617164d5f5b155528890f7f1f7e",
    "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/0b084820b85c25826686f51a078c5b95fe2dd696.1433253642.git.yanirx.lubetkin@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/479504/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/479504/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 hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133])\n\tby ozlabs.org (Postfix) with ESMTP id 19AA11412E3\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  3 Jun 2015 00:07:06 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 607AC951C5;\n\tTue,  2 Jun 2015 14:07:05 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id aDqOCDBV8rIo; Tue,  2 Jun 2015 14:07:01 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id E27238A54C;\n\tTue,  2 Jun 2015 14:07:01 +0000 (UTC)",
            "from whitealder.osuosl.org (whitealder.osuosl.org\n\t[140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 705321C0505\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  2 Jun 2015 14:07:00 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 69DA89218C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  2 Jun 2015 14:07:00 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id z1-hYtIDBGdA for <intel-wired-lan@lists.osuosl.org>;\n\tTue,  2 Jun 2015 14:06:56 +0000 (UTC)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 1A4AB92190\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  2 Jun 2015 14:06:56 +0000 (UTC)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga101.fm.intel.com with ESMTP; 02 Jun 2015 07:06:37 -0700",
            "from unknown (HELO ccdpc064.localdomain.com) ([143.185.160.80])\n\tby orsmga003.jf.intel.com with ESMTP; 02 Jun 2015 07:06:35 -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,540,1427785200\"; d=\"scan'208\";a=\"580661781\"",
        "From": "Yanir Lubetkin <yanirx.lubetkin@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Tue,  2 Jun 2015 17:05:47 +0300",
        "Message-Id": "<0b084820b85c25826686f51a078c5b95fe2dd696.1433253642.git.yanirx.lubetkin@intel.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<5c0f5ad24e5ae3adfede0279b6fdfea4312e32da.1433253642.git.yanirx.lubetkin@intel.com>",
        "References": "<5c0f5ad24e5ae3adfede0279b6fdfea4312e32da.1433253642.git.yanirx.lubetkin@intel.com>",
        "Subject": "[Intel-wired-lan] [PATCH v2 4/5] e1000e: fix unit hang during\n\tloopback test",
        "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": "system would hang during execution of \"ethtool -t <NIC>\" for the same\nreason that required flushing the descriptor rings. this fix disables\nMULR for the loopback test to avoid the hang state.\n\nSigned-off-by: Yanir Lubetkin <yanirx.lubetkin@intel.com>\n---\n drivers/net/ethernet/intel/e1000e/ethtool.c | 27 ++++++++++++++++++++++++---\n 1 file changed, 24 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/e1000e/ethtool.c b/drivers/net/ethernet/intel/e1000e/ethtool.c\nindex 11f486e..51b7806 100644\n--- a/drivers/net/ethernet/intel/e1000e/ethtool.c\n+++ b/drivers/net/ethernet/intel/e1000e/ethtool.c\n@@ -1516,8 +1516,19 @@ static int e1000_set_es2lan_mac_loopback(struct e1000_adapter *adapter)\n static int e1000_setup_loopback_test(struct e1000_adapter *adapter)\n {\n \tstruct e1000_hw *hw = &adapter->hw;\n-\tu32 rctl;\n-\n+\tu32 rctl, fext_nvm11, tarc0;\n+ \n+\tif (hw->mac.type == e1000_pch_spt) {\n+\t\tfext_nvm11 = er32(FEXTNVM11);\n+\t\tfext_nvm11 |= E1000_FEXTNVM11_DISABLE_MULR_FIX;\n+\t\tew32(FEXTNVM11, fext_nvm11);\n+\t\ttarc0 = er32(TARC(0));\n+\t\t/* clear bits 28 & 29 (control of MULR concurrent requests) */\n+\t\ttarc0 &= 0xcfffffff;\n+\t\t/* set bit 29 (value of MULR requests is now 2) */\n+\t\ttarc0 |= 0x20000000;\n+\t\tew32(TARC(0), tarc0);\n+\t}\n \tif (hw->phy.media_type == e1000_media_type_fiber ||\n \t    hw->phy.media_type == e1000_media_type_internal_serdes) {\n \t\tswitch (hw->mac.type) {\n@@ -1542,7 +1553,7 @@ static int e1000_setup_loopback_test(struct e1000_adapter *adapter)\n static void e1000_loopback_cleanup(struct e1000_adapter *adapter)\n {\n \tstruct e1000_hw *hw = &adapter->hw;\n-\tu32 rctl;\n+\tu32 rctl, fext_nvm11, tarc0;\n \tu16 phy_reg;\n \n \trctl = er32(RCTL);\n@@ -1550,6 +1561,16 @@ static void e1000_loopback_cleanup(struct e1000_adapter *adapter)\n \tew32(RCTL, rctl);\n \n \tswitch (hw->mac.type) {\n+\tcase e1000_pch_spt:\n+\t\tfext_nvm11 = er32(FEXTNVM11);\n+\t\tfext_nvm11 &= ~E1000_FEXTNVM11_DISABLE_MULR_FIX;\n+\t\tew32(FEXTNVM11, fext_nvm11);\n+\t\ttarc0 = er32(TARC(0));\n+\t\t/* clear bits 28 & 29 (control of MULR concurrent requests) */\n+\t\t/* set bit 29 (value of MULR requests is now 0) */\n+\t\ttarc0 &= 0xcfffffff;\n+\t\tew32(TARC(0), tarc0);\n+\t\t/* fall through */\n \tcase e1000_80003es2lan:\n \t\tif (hw->phy.media_type == e1000_media_type_fiber ||\n \t\t    hw->phy.media_type == e1000_media_type_internal_serdes) {\n",
    "prefixes": [
        "v2",
        "4/5"
    ]
}