get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 462222,
    "url": "http://patchwork.ozlabs.org/api/patches/462222/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1429302240-654-2-git-send-email-jtoppins@cumulusnetworks.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": "<1429302240-654-2-git-send-email-jtoppins@cumulusnetworks.com>",
    "list_archive_url": null,
    "date": "2015-04-17T20:24:00",
    "name": "[v1,net-next,2/2] igb: support SIOCSMIIREG",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "0bfefb2a589819e2a2e9402aff6021933207d15b",
    "submitter": {
        "id": 64552,
        "url": "http://patchwork.ozlabs.org/api/people/64552/?format=api",
        "name": "Jonathan Toppins",
        "email": "jtoppins@cumulusnetworks.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/1429302240-654-2-git-send-email-jtoppins@cumulusnetworks.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/462222/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/462222/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 (silver.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id BDAAD140283\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 18 Apr 2015 09:46:10 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id C017733377;\n\tFri, 17 Apr 2015 23:46:09 +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 zDhBWwcPpncr; Fri, 17 Apr 2015 23:46:08 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id E3AB633385;\n\tFri, 17 Apr 2015 23:46:07 +0000 (UTC)",
            "from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 6C3621C2E43\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 17 Apr 2015 20:24:17 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 6912395EBF\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 17 Apr 2015 20:24:17 +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 Iyc3f2e34-4E for <intel-wired-lan@lists.osuosl.org>;\n\tFri, 17 Apr 2015 20:24:16 +0000 (UTC)",
            "from mail-pd0-f182.google.com (mail-pd0-f182.google.com\n\t[209.85.192.182])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id BE3E895EB1\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 17 Apr 2015 20:24:16 +0000 (UTC)",
            "by pdbnk13 with SMTP id nk13so138573785pdb.0\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 17 Apr 2015 13:24:16 -0700 (PDT)",
            "from monster-01.cumulusnetworks.com ([216.129.126.126])\n\tby mx.google.com with ESMTPSA id\n\tnd3sm10951713pbc.9.2015.04.17.13.24.15\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 17 Apr 2015 13:24:15 -0700 (PDT)"
        ],
        "Authentication-Results": "ozlabs.org; dkim=fail\n\treason=\"verification failed; unprotected key\"\n\theader.d=cumulusnetworks.com header.i=@cumulusnetworks.com\n\theader.b=E0I6cjwz; dkim-adsp=none (unprotected policy);\n\tdkim-atps=neutral",
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "from auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=cumulusnetworks.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=Wr7muAgoWD6kk9EwN7/r1t4pkJk+9r4vkUapVlniCfE=;\n\tb=E0I6cjwz2A0GCp3U/yUNs02m29kdyrkNPGg7E6cJtCBP+z7+QqOLksNDvm2fY2oQT+\n\tDGLOce3EdgCFww0HsJP5k+wypgDYtbXf6VHJF9llI6Vkxouk5soeP1za4pEU5KDKy2Np\n\twfO7Ol4t81HMN+OgdAKZvigIPUPCK9LuxuzNA=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=Wr7muAgoWD6kk9EwN7/r1t4pkJk+9r4vkUapVlniCfE=;\n\tb=bXdioOgsaIZmgHuvuDQUlb79dbajli2IvAL3/dhY9XRhlxcUA/edH0lxXhGaRT8bEi\n\tCVD4otErvXLu9mw61kuNXa9bdYb5uwGycH7yt42NGfyudiiKLiWHshjK2RwAUnFls8XU\n\tXwYRmIiqEnDMeYIeswTcnip1PbH+PAawQmU7bSaMCpjIAvR+ozN+mXiS1cGGmTxg9j3W\n\tJtZFYfDqj4GU7Dw1lXfQE57QdUAJAG1KDiZ2ZCj5Us8uGE+ZUVCGyiGz17GvjnwbT9gi\n\tTbZMxjHpFQMluuq376DSsH+YtPjfRlgND3qKFDW5qbj1R8rVGq27rAi4BZZflRbYkMJ9\n\tHIYg==",
        "X-Gm-Message-State": "ALoCoQkijYcBLG5Ipv7v8iJSFnlHKXZ9lfGVQud/LoTFciZebdgrY3bdY7DrsXf0G7gREY6ULkE1",
        "X-Received": "by 10.66.63.7 with SMTP id c7mr8564369pas.13.1429302256479;\n\tFri, 17 Apr 2015 13:24:16 -0700 (PDT)",
        "From": "Jonathan Toppins <jtoppins@cumulusnetworks.com>",
        "To": "jeffrey.t.kirsher@intel.com",
        "Date": "Fri, 17 Apr 2015 13:24:00 -0700",
        "Message-Id": "<1429302240-654-2-git-send-email-jtoppins@cumulusnetworks.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "In-Reply-To": "<1429302240-654-1-git-send-email-jtoppins@cumulusnetworks.com>",
        "References": "<1429302240-654-1-git-send-email-jtoppins@cumulusnetworks.com>",
        "X-Mailman-Approved-At": "Fri, 17 Apr 2015 23:46:06 +0000",
        "Cc": "shm@cumulusnetworks.com, gospo@cumulusnetworks.com,\n\tAlan Liebthal <alanl@cumulusnetworks.com>,\n\tintel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org",
        "Subject": "[Intel-wired-lan] [PATCH v1 net-next 2/2] igb: support SIOCSMIIREG",
        "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": "From: Alan Liebthal <alanl@cumulusnetworks.com>\n\nSupport setting the MII register via SIOCSMIIREG.\n\nSigned-off-by: Alan Liebthal <alanl@cumulusnetworks.com>\nSigned-off-by: Jonathan Toppins <jtoppins@cumulusnetworks.com>\n---\n drivers/net/ethernet/intel/igb/igb_main.c |    5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c\nindex 720b785..1071a71 100644\n--- a/drivers/net/ethernet/intel/igb/igb_main.c\n+++ b/drivers/net/ethernet/intel/igb/igb_main.c\n@@ -7141,6 +7141,11 @@ static int igb_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)\n \t\t\treturn -EIO;\n \t\tbreak;\n \tcase SIOCSMIIREG:\n+\t\tadapter->hw.phy.addr = data->phy_id;\n+\t\tif (igb_write_phy_reg(&adapter->hw, data->reg_num & 0x1F,\n+\t\t\t\t      data->val_in))\n+\t\t\treturn -EIO;\n+\t\tbreak;\n \tdefault:\n \t\treturn -EOPNOTSUPP;\n \t}\n",
    "prefixes": [
        "v1",
        "net-next",
        "2/2"
    ]
}