Skip to contentSkip to conversation

ixgbe: Check for setup_internal_link method

PATCH New Mark D Rustad 1 participant 1 message Sep 9, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgbe: Check for setup_internal_link method

Only call the internal_setup_link method when it is provided. This check is required for newer version parts.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c +1 -1
index add6e96b93ea..d3e3e50acf11 100644
@@ -1572,7 +1572,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;