Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b868179c authored by Dean Nelson's avatar Dean Nelson Committed by Jeff Kirsher
Browse files

e1000: add dropped DMA receive enable back in for WoL



Commit d5bc77a2 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: stable@vger.stable.org
Reported-by: default avatarTobias Klausmann <klausman@schwarzvogel.de>
Signed-off-by: default avatarDean Nelson <dnelson@redhat.com>
Tested-by: default avatarTobias Klausmann <klausman@schwarzvogel.de>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 64db880e
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -4740,12 +4740,14 @@ static int __e1000_shutdown(struct pci_dev *pdev, bool *enable_wake)
		e1000_setup_rctl(adapter);
		e1000_set_rx_mode(netdev);

		/* turn on all-multi mode if wake on multicast is enabled */
		if (wufc & E1000_WUFC_MC) {
		rctl = er32(RCTL);

		/* turn on all-multi mode if wake on multicast is enabled */
		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);