Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/664633/?format=api
{ "id": 664633, "url": "http://patchwork.ozlabs.org/api/patches/664633/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/147266486833.85990.11581043019718532911.stgit@mdrustad-wks.jf.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": "<147266486833.85990.11581043019718532911.stgit@mdrustad-wks.jf.intel.com>", "list_archive_url": null, "date": "2016-08-31T17:34:28", "name": "ixgbe: Return error when getting PHY address if PHY access is not supported", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "c974edf3f98125d5b7a92fd10f643f35ae96051d", "submitter": { "id": 13252, "url": "http://patchwork.ozlabs.org/api/people/13252/?format=api", "name": "Rustad, Mark D", "email": "mark.d.rustad@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/147266486833.85990.11581043019718532911.stgit@mdrustad-wks.jf.intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/664633/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/664633/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 whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3sPXZN1rw6z9srZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 1 Sep 2016 03:34:35 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 49DB189E8E;\n\tWed, 31 Aug 2016 17:34:33 +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 CbEDNojiWUIp; Wed, 31 Aug 2016 17:34:31 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 09BF98985C;\n\tWed, 31 Aug 2016 17:34:31 +0000 (UTC)", "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id AAA961C2BFB\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 31 Aug 2016 17:34:29 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id A34C526DCC\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 31 Aug 2016 17:34:29 +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 QjjS72WkKhbm for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 31 Aug 2016 17:34:28 +0000 (UTC)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby silver.osuosl.org (Postfix) with ESMTPS id D64A725C1E\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 31 Aug 2016 17:34:28 +0000 (UTC)", "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby orsmga102.jf.intel.com with ESMTP; 31 Aug 2016 10:34:28 -0700", "from mdrustad-wks.jf.intel.com ([134.134.3.196])\n\tby orsmga004.jf.intel.com with ESMTP; 31 Aug 2016 10:34:28 -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.30,263,1470726000\"; d=\"scan'208\";a=\"3464863\"", "From": "Mark D Rustad <mark.d.rustad@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Wed, 31 Aug 2016 10:34:28 -0700", "Message-ID": "<147266486833.85990.11581043019718532911.stgit@mdrustad-wks.jf.intel.com>", "User-Agent": "StGit/unknown-version", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [PATCH] ixgbe: Return error when getting PHY\n\taddress if PHY access is not supported", "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>", "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": "In cases where PHY register access is not supported, don't mislead\na caller into thinking that it is supported by returning a PHY\naddress. Instead, return -EOPNOTSUPP when PHY access is not\nsupported.\n\nSigned-off-by: Mark Rustad <mark.d.rustad@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\nindex 1c888588cecd..9081b2ecb949 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n@@ -8008,6 +8008,10 @@ static int ixgbe_ioctl(struct net_device *netdev, struct ifreq *req, int cmd)\n \t\treturn ixgbe_ptp_set_ts_config(adapter, req);\n \tcase SIOCGHWTSTAMP:\n \t\treturn ixgbe_ptp_get_ts_config(adapter, req);\n+\tcase SIOCGMIIPHY:\n+\t\tif (!adapter->hw.phy.ops.read_reg)\n+\t\t\treturn -EOPNOTSUPP;\n+\t\t/* fall through */\n \tdefault:\n \t\treturn mdio_mii_ioctl(&adapter->hw.phy.mdio, if_mii(req), cmd);\n \t}\n", "prefixes": [] }