]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: Check for setup_internal_link method
authorMark Rustad <mark.d.rustad@intel.com>
Wed, 9 Sep 2015 20:37:33 +0000 (13:37 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:39:57 +0000 (16:39 -0700)
Orabug: 23177316

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>
(cherry picked from commit a85ce532f28efabda030d9065a0c2023a2003f36)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c

index 06b15eddc4ae307e5014f3cb79270b37f0cece5c..ebe0ac950b14e72a0d5dae2e51d3250c250846d1 100644 (file)
@@ -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;