]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:23:23 +0000 (22:23 +0800)
commitf6f7ffaa83e0b6e0df5085292201812f8a0f292d
tree15244756243a2dbf28907e2ca9576799e6081504
parentb145ed1e42652941975542b7b82d65f0e2610888
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.

(cherry picked from commit 93d3ce8fafb888702311fc8c5917faa4c25b8266)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c