get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 479503,
    "url": "http://patchwork.ozlabs.org/api/patches/479503/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/4bd9425b152903b483996d9ea340489113cf9587.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": "<4bd9425b152903b483996d9ea340489113cf9587.1433253642.git.yanirx.lubetkin@intel.com>",
    "list_archive_url": null,
    "date": "2015-06-02T14:05:42",
    "name": "[v2,2/5] e1000e: fix legacy interrupt handling in i219",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "ee72dc012ab7715279537389142a583e7c516607",
    "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/4bd9425b152903b483996d9ea340489113cf9587.1433253642.git.yanirx.lubetkin@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/479503/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/479503/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 4D8561412E2\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  3 Jun 2015 00:07:02 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 979048A4AE;\n\tTue,  2 Jun 2015 14:07:01 +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 MM8BrCT2kfRh; Tue,  2 Jun 2015 14:06:57 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id C68288A5E1;\n\tTue,  2 Jun 2015 14:06:57 +0000 (UTC)",
            "from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id EC3251C0505\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  2 Jun 2015 14:06:55 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id E75EF8A53F\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  2 Jun 2015 14:06:55 +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 q6b3IJ1xyEqT for <intel-wired-lan@lists.osuosl.org>;\n\tTue,  2 Jun 2015 14:06:51 +0000 (UTC)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id B3CD78A4AE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  2 Jun 2015 14:06:51 +0000 (UTC)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga101.jf.intel.com with ESMTP; 02 Jun 2015 07:06:32 -0700",
            "from unknown (HELO ccdpc064.localdomain.com) ([143.185.160.80])\n\tby fmsmga001.fm.intel.com with ESMTP; 02 Jun 2015 07:06:31 -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=\"719341718\"",
        "From": "Yanir Lubetkin <yanirx.lubetkin@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Tue,  2 Jun 2015 17:05:42 +0300",
        "Message-Id": "<4bd9425b152903b483996d9ea340489113cf9587.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 2/5] e1000e: fix legacy interrupt\n\thandling in i219",
        "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 fix handles a hardware issue that prevented i219 from\nworking in legacy interrupts mode (IntMode=0)\n\nSigned-off-by: Yanir Lubetkin <yanirx.lubetkin@intel.com>\n---\n drivers/net/ethernet/intel/e1000e/ich8lan.h |  5 ++++-\n drivers/net/ethernet/intel/e1000e/netdev.c  | 14 ++++++++++++++\n drivers/net/ethernet/intel/e1000e/regs.h    |  1 +\n 3 files changed, 19 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.h b/drivers/net/ethernet/intel/e1000e/ich8lan.h\nindex da0454c..a960d48 100644\n--- a/drivers/net/ethernet/intel/e1000e/ich8lan.h\n+++ b/drivers/net/ethernet/intel/e1000e/ich8lan.h\n@@ -98,8 +98,11 @@\n #define E1000_FEXTNVM6_K1_OFF_ENABLE\t0x80000000\n /* bit for disabling packet buffer read */\n #define E1000_FEXTNVM7_DISABLE_PB_READ\t0x00040000\n-\n+#define E1000_FEXTNVM7_SIDE_CLK_UNGATE\t0x00000004\n #define E1000_FEXTNVM7_DISABLE_SMB_PERST\t0x00000020\n+#define E1000_FEXTNVM9_IOSFSB_CLKGATE_DIS\t0x00000800\n+#define E1000_FEXTNVM9_IOSFSB_CLKREQ_DIS\t0x00001000\n+#define E1000_FEXTNVM11_DISABLE_PB_READ\t\t0x00000200\n #define E1000_FEXTNVM11_DISABLE_MULR_FIX\t0x00002000\n \n /* bit24: RXDCTL thresholds granularity: 0 - cache lines, 1 - descriptors */\ndiff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c\nindex 4f029b6..5f94fdf 100644\n--- a/drivers/net/ethernet/intel/e1000e/netdev.c\n+++ b/drivers/net/ethernet/intel/e1000e/netdev.c\n@@ -4120,6 +4120,20 @@ void e1000e_reset(struct e1000_adapter *adapter)\n \t\tphy_data &= ~IGP02E1000_PM_SPD;\n \t\te1e_wphy(hw, IGP02E1000_PHY_POWER_MGMT, phy_data);\n \t}\n+\tif (hw->mac.type == e1000_pch_spt && adapter->int_mode == 0) {\n+\t\tu32 reg;\n+\n+\t\t/* Fextnvm7 @ 0xe4[2] = 1 */\n+\t\treg = er32(FEXTNVM7);\n+\t\treg |= E1000_FEXTNVM7_SIDE_CLK_UNGATE;\n+\t\tew32(FEXTNVM7, reg);\n+\t\t/* Fextnvm9 @ 0x5bb4[13:12] = 11 */\n+\t\treg = er32(FEXTNVM9);\n+\t\treg |= E1000_FEXTNVM9_IOSFSB_CLKGATE_DIS |\n+\t\t       E1000_FEXTNVM9_IOSFSB_CLKREQ_DIS;\n+\t\tew32(FEXTNVM9, reg);\n+\t}\n+\n }\n \n int e1000e_up(struct e1000_adapter *adapter)\ndiff --git a/drivers/net/ethernet/intel/e1000e/regs.h b/drivers/net/ethernet/intel/e1000e/regs.h\nindex 200a312..110e27e 100644\n--- a/drivers/net/ethernet/intel/e1000e/regs.h\n+++ b/drivers/net/ethernet/intel/e1000e/regs.h\n@@ -38,6 +38,7 @@\n #define E1000_FEXTNVM4\t0x00024\t/* Future Extended NVM 4 - RW */\n #define E1000_FEXTNVM6\t0x00010\t/* Future Extended NVM 6 - RW */\n #define E1000_FEXTNVM7\t0x000E4\t/* Future Extended NVM 7 - RW */\n+#define E1000_FEXTNVM9\t0x5BB4  /* Future Extended NVM 9 - RW */\n #define E1000_FEXTNVM11\t0x5BBC  /* Future Extended NVM 11 - RW */\n #define E1000_PCIEANACFG\t0x00F18\t/* PCIE Analog Config */\n #define E1000_FCT\t0x00030\t/* Flow Control Type - RW */\n",
    "prefixes": [
        "v2",
        "2/5"
    ]
}