projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a33bc0
)
bnx2x: Move to D0 before clearing MSI/MSI-X configuration.
author
Vladislav Zolotarov
<
[email protected]
>
Sun, 9 Jan 2011 02:20:19 +0000
(
02:20
+0000)
committer
David S. Miller
<
[email protected]
>
Sun, 9 Jan 2011 23:47:39 +0000
(15:47 -0800)
Move to D0 before clearing MSI/MSI-X configuration. Otherwise MSI/MSI-X
won't be cleared.
Signed-off-by: Vladislav Zolotarov <
[email protected]
>
Signed-off-by: Eilon Greenstein <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bnx2x/bnx2x_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x_main.c
b/drivers/net/bnx2x/bnx2x_main.c
index b5558bc7223d47b0254f5d2cac31332e479976f8..84e1af4d65e1fc34f761c52bba731ed7489174ad 100644
(file)
--- a/
drivers/net/bnx2x/bnx2x_main.c
+++ b/
drivers/net/bnx2x/bnx2x_main.c
@@
-9508,9
+9508,15
@@
static void __devexit bnx2x_remove_one(struct pci_dev *pdev)
/* Delete all NAPI objects */
bnx2x_del_all_napi(bp);
+ /* Power on: we can't let PCI layer write to us while we are in D3 */
+ bnx2x_set_power_state(bp, PCI_D0);
+
/* Disable MSI/MSI-X */
bnx2x_disable_msi(bp);
+ /* Power off */
+ bnx2x_set_power_state(bp, PCI_D3hot);
+
/* Make sure RESET task is not scheduled before continuing */
cancel_delayed_work_sync(&bp->reset_task);