mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 11:32:04 +00:00
be2net: call FLR after setup wol in be_shutdown
Calling setup_wol after a reset is inconsequential. The WOL setting should be programmed before FLR. And yes, FLR does not erase wol information. Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
48f5a19168
commit
5784186919
@ -3191,11 +3191,11 @@ static void be_shutdown(struct pci_dev *pdev)
|
|||||||
|
|
||||||
netif_device_detach(adapter->netdev);
|
netif_device_detach(adapter->netdev);
|
||||||
|
|
||||||
be_cmd_reset_function(adapter);
|
|
||||||
|
|
||||||
if (adapter->wol)
|
if (adapter->wol)
|
||||||
be_setup_wol(adapter, true);
|
be_setup_wol(adapter, true);
|
||||||
|
|
||||||
|
be_cmd_reset_function(adapter);
|
||||||
|
|
||||||
pci_disable_device(pdev);
|
pci_disable_device(pdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user