Skip to content

Commit

Permalink
ixgbe: Check for setup_internal_link method
Browse files Browse the repository at this point in the history
Only call the internal_setup_link method when it is provided. This
check is required for newer version parts.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Darin Miller <darin.j.miller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Mark Rustad authored and Jeff Kirsher committed Oct 15, 2015
1 parent 164f739 commit a85ce53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@ static s32 ixgbe_handle_lasi_ext_t_x550em(struct ixgbe_hw *hw)
if (status)
return status;

if (lsc)
if (lsc && phy->ops.setup_internal_link)
return phy->ops.setup_internal_link(hw);

return 0;
Expand Down

0 comments on commit a85ce53

Please sign in to comment.