From: Matthew Vick Date: Thu, 2 Oct 2014 05:10:18 +0000 (+0000) Subject: fm10k: Check the host state when bringing the interface up X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d4191566fdd0e8990b2e8ab5ae819227c92892f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fm10k: Check the host state when bringing the interface up Set the flag to fetch the host state before kicking off the service task that reads the host state when bringing the interface back up. Signed-off-by: Matthew Vick Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c index e02036c427b9..a0cb74ab3dc6 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c @@ -1489,6 +1489,7 @@ void fm10k_up(struct fm10k_intfc *interface) netif_tx_start_all_queues(interface->netdev); /* kick off the service timer */ + hw->mac.get_host_state = 1; mod_timer(&interface->service_timer, jiffies); }