ixgbe: fix disabling of Tx laser at probe
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 19 Oct 2011 07:59:55 +0000 (07:59 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 2 Nov 2011 23:55:23 +0000 (16:55 -0700)
commit93d3ce8fafb888702311fc8c5917faa4c25b8266
tree0cc09c215d5f29928c4e0b75e34a39b050f6a194
parent232ef6bc451de2bc17c22fd116838cd89b94e1c1
ixgbe: fix disabling of Tx laser at probe

register_netdev() calls ndo_set_features() which may result in HW reset
which in turn will bring the laser back up.

This patch moves ixgbe_laser_tx_disable() below register_netdev()
in ixgbe_probe() to make sure laser is shut off on load.

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/ethernet/intel/ixgbe/ixgbe_main.c