be2net: call FLR after setup wol in be_shutdown
Subsystems (2)
PATCH 5/5 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 <[email protected]>
--- drivers/net/benet/be_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/benet/be_main.c +2 -2
@@ -3188,11 +3188,11 @@ static void be_shutdown(struct pci_dev *pdev)netif_device_detach (netdev); -be_cmd_reset_function (adapter); -if (adapter->wol)be_setup_wol (adapter, true); +be_cmd_reset_function (adapter); +pci_disable_device (pdev); }
Signature · 1 line
1.7.1