Skip to content

Commit

Permalink
i40e: Store off PHY capabilities
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Scott authored and Jeff Kirsher committed Oct 15, 2015
1 parent 874d1a1 commit 3ac67d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/intel/i40e/i40e_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3ac67d7

Please sign in to comment.