diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2011-04-06 14:08:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-07 18:05:00 -0400 |
commit | 57841869197831542f25c739beaeab4465977878 (patch) | |
tree | 90d282ad0691b8b85f97fbe75e6ad8cde98c1178 /drivers/net/benet | |
parent | 48f5a19168c228e6533401c563d9fcbc152bc33f (diff) |
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>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r-- | drivers/net/benet/be_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 6e7df0dd418b..b8831403400c 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -3191,11 +3191,11 @@ static void be_shutdown(struct pci_dev *pdev) | |||
3191 | 3191 | ||
3192 | netif_device_detach(adapter->netdev); | 3192 | netif_device_detach(adapter->netdev); |
3193 | 3193 | ||
3194 | be_cmd_reset_function(adapter); | ||
3195 | |||
3196 | if (adapter->wol) | 3194 | if (adapter->wol) |
3197 | be_setup_wol(adapter, true); | 3195 | be_setup_wol(adapter, true); |
3198 | 3196 | ||
3197 | be_cmd_reset_function(adapter); | ||
3198 | |||
3199 | pci_disable_device(pdev); | 3199 | pci_disable_device(pdev); |
3200 | } | 3200 | } |
3201 | 3201 | ||