netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] e1000: add dropped DMA receive enable back in for WoL
@ 2012-01-18 15:46 Dean Nelson
  2012-01-19  9:42 ` Jeff Kirsher
  0 siblings, 1 reply; 2+ messages in thread
From: Dean Nelson @ 2012-01-18 15:46 UTC (permalink / raw)
  To: netdev; +Cc: Tobias Klausmann, Jeff Kirsher

Commit d5bc77a223b0e9b9dfb002048d2b34a79e7d0b48 broke Wake-on-LAN by
inadvertently dropping the enabling of DMA receives.

Restore the enabling of DMA receives for WoL.

Reported-by: Tobias Klausmann <klausman@schwarzvogel.de>
Signed-off-by: Dean Nelson <dnelson@redhat.com>
Tested-by: Tobias Klausmann <klausman@schwarzvogel.de>
---
 drivers/net/ethernet/intel/e1000/e1000_main.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c
index 669ca38..a855982 100644
--- 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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] e1000: add dropped DMA receive enable back in for WoL
  2012-01-18 15:46 [PATCH net-next] e1000: add dropped DMA receive enable back in for WoL Dean Nelson
@ 2012-01-19  9:42 ` Jeff Kirsher
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Kirsher @ 2012-01-19  9:42 UTC (permalink / raw)
  To: Dean Nelson; +Cc: netdev, Tobias Klausmann

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]

On Wed, 2012-01-18 at 10:46 -0500, Dean Nelson wrote:
> Commit d5bc77a223b0e9b9dfb002048d2b34a79e7d0b48 broke Wake-on-LAN by
> inadvertently dropping the enabling of DMA receives.
> 
> Restore the enabling of DMA receives for WoL.
> 
> Reported-by: Tobias Klausmann <klausman@schwarzvogel.de>
> Signed-off-by: Dean Nelson <dnelson@redhat.com>
> Tested-by: Tobias Klausmann <klausman@schwarzvogel.de>
> ---
>  drivers/net/ethernet/intel/e1000/e1000_main.c |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-) 

Thanks, I have added the patch to my queue.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-19  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-18 15:46 [PATCH net-next] e1000: add dropped DMA receive enable back in for WoL Dean Nelson
2012-01-19  9:42 ` Jeff Kirsher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).