ixgbe: fix PHY link setup for 82599
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 28 Jul 2011 06:17:04 +0000 (06:17 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 4 Aug 2011 12:06:13 +0000 (05:06 -0700)
Fix pointer to setup_link for 82599.

This resolves some link issues when advertising modes unsupported
by the link partner.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_82599.c

index 3b3dd4d..34f30ec 100644 (file)
@@ -213,6 +213,7 @@ static s32 ixgbe_init_phy_ops_82599(struct ixgbe_hw *hw)
        switch (hw->phy.type) {
        case ixgbe_phy_tn:
                phy->ops.check_link = &ixgbe_check_phy_link_tnx;
+               phy->ops.setup_link = &ixgbe_setup_phy_link_tnx;
                phy->ops.get_firmware_version =
                             &ixgbe_get_phy_firmware_version_tnx;
                break;