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:
64db880
)
e1000: add dropped DMA receive enable back in for WoL
author
Dean Nelson
<
[email protected]
>
Thu, 19 Jan 2012 17:47:24 +0000
(17:47 +0000)
committer
Jeff Kirsher
<
[email protected]
>
Thu, 9 Feb 2012 09:24:23 +0000
(
01:24
-0800)
Commit
d5bc77a223b0e9b9dfb002048d2b34a79e7d0b48
broke Wake-on-LAN by
inadvertently dropping the enabling of DMA receives.
Restore the enabling of DMA receives for WoL.
This is applicable to 3.1+ stable trees.
CC:
[email protected]
Reported-by: Tobias Klausmann <
[email protected]
>
Signed-off-by: Dean Nelson <
[email protected]
>
Tested-by: Tobias Klausmann <
[email protected]
>
Tested-by: Aaron Brown <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/e1000/e1000_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/e1000/e1000_main.c
b/drivers/net/ethernet/intel/e1000/e1000_main.c
index 669ca3800c01a15ced19745c9af8f6312b651f4e..d94d64b5d695d1fccd5ec22aef09805d046dc4b9 100644
(file)
--- a/
drivers/net/ethernet/intel/e1000/e1000_main.c
+++ b/
drivers/net/ethernet/intel/e1000/e1000_main.c
@@
-4740,12
+4740,14
@@
static int __e1000_shutdown(struct pci_dev *pdev, bool *enable_wake)
e1000_setup_rctl(adapter);
e1000_set_rx_mode(netdev);
+ rctl = er32(RCTL);
+
/* turn on all-multi mode if wake on multicast is enabled */
- if (wufc & E1000_WUFC_MC) {
- rctl = er32(RCTL);
+ if (wufc & E1000_WUFC_MC)
rctl |= E1000_RCTL_MPE;
- ew32(RCTL, rctl);
- }
+
+ /* enable receives in the hardware */
+ ew32(RCTL, rctl | E1000_RCTL_EN);
if (hw->mac_type >= e1000_82540) {
ctrl = er32(CTRL);