mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-23 02:51:47 +00:00
i40evf: stop the watchdog for shutdown
Stop the watchdog during shutdown. Failing to do this causes a log full of admin queue errors and the occasional hang when the system is shut down. Change-ID: Ib2fd11213cca2fa589eb68577e86b1000c23c250 Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Jim Young <james.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
8b011ebb5c
commit
00293fdc42
1 changed files with 6 additions and 0 deletions
|
@ -2213,12 +2213,18 @@ static void i40evf_init_task(struct work_struct *work)
|
|||
static void i40evf_shutdown(struct pci_dev *pdev)
|
||||
{
|
||||
struct net_device *netdev = pci_get_drvdata(pdev);
|
||||
struct i40evf_adapter *adapter = netdev_priv(netdev);
|
||||
|
||||
netif_device_detach(netdev);
|
||||
|
||||
if (netif_running(netdev))
|
||||
i40evf_close(netdev);
|
||||
|
||||
/* Prevent the watchdog from running. */
|
||||
adapter->state = __I40EVF_REMOVE;
|
||||
adapter->aq_required = 0;
|
||||
adapter->aq_pending = 0;
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
pci_save_state(pdev);
|
||||
|
||||
|
|
Loading…
Reference in a new issue