ixgbe: fix linking at 100Mbps on copper devices with MNG FW enabled
authorEmil Tantilov <emil.s.tantilov@intel.com>
Tue, 13 May 2014 08:24:00 +0000 (08:24 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 27 May 2014 06:53:09 +0000 (23:53 -0700)
commitd1a35ee277afafc4f35d1de436b02941b46a7ca2
tree0f23e47007774745eb9b2b20cdc7982ffc434b7c
parent3bea8eddfebe1c61ea824dd2880d4368791edc1f
ixgbe: fix linking at 100Mbps on copper devices with MNG FW enabled

Driver was calling setup_link to make sure that fiber interfaces with MNG FW
enabled will get link on probe because the laser was most likely turned off.
This prevented non-fiber devices with MNG FW from linking at 100Mbps.

This patch adds a check to only call setup_link for fiber devices.

Reported-and-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c