summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Scott <kevin.c.scott@intel.com>2015-09-03 17:18:58 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-10-15 02:15:29 -0700
commit3ac67d7bfa2f35cc8a52bdff39e3bbadb6e639a9 (patch)
treec8d523f750a3c49e5b7e667d168e6ab91ada35eb
parent874d1a10eb1ab466f48627cdd268335a635dde52 (diff)
downloadlinux-3ac67d7bfa2f35cc8a52bdff39e3bbadb6e639a9.tar.bz2
i40e: Store off PHY capabilities
Store off reported PHY capabilities in link_info structure. Change-ID: Ife0f037c26983ca985dbf79abf33f8f8791369e8 Signed-off-by: Kevin Scott <kevin.c.scott@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c
index ffd1cd0642f1..d1ee1745473d 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_common.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c
@@ -1617,6 +1617,9 @@ i40e_status i40e_aq_get_phy_capabilities(struct i40e_hw *hw,
if (hw->aq.asq_last_status == I40E_AQ_RC_EIO)
status = I40E_ERR_UNKNOWN_PHY;
+ if (report_init)
+ hw->phy.phy_types = le32_to_cpu(abilities->phy_type);
+
return status;
}