fm10k: avoid needless delay when loading driver
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 10 Jul 2017 20:23:08 +0000 (13:23 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 2 Oct 2017 14:57:42 +0000 (07:57 -0700)
commit8bac58be1700dab3cac8cb53ed0651da40777024
treefb479aa5cd5e96096cf4774b56253163dc8d2cf4
parent523a0b558db4ca205522976077911e5efe235781
fm10k: avoid needless delay when loading driver

When we load the driver, we set the last_reset to be in the future,
which delays the initial driver reset. Additionally, the service task
isn't scheduled to run automatically until the timer runs out. This
causes a needless delay of the first reset to begin talking to the
switch manager.

We can avoid this by simply not setting last_reset and immediately
scheduling the service task while in probe. This allows the device to
wake up faster, and avoids this delay.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c