We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4ed95d commit aaa89c0Copy full SHA for aaa89c0
drivers/net/r8169.c
@@ -5729,8 +5729,11 @@ static void rtl_shutdown(struct pci_dev *pdev)
5729
spin_unlock_irq(&tp->lock);
5730
5731
if (system_state == SYSTEM_POWER_OFF) {
5732
- /* WoL fails with some 8168 when the receiver is disabled. */
5733
- if (tp->features & RTL_FEATURE_WOL) {
+ /* WoL fails with 8168b when the receiver is disabled. */
+ if ((tp->mac_version == RTL_GIGA_MAC_VER_11 ||
5734
+ tp->mac_version == RTL_GIGA_MAC_VER_12 ||
5735
+ tp->mac_version == RTL_GIGA_MAC_VER_17) &&
5736
+ (tp->features & RTL_FEATURE_WOL)) {
5737
pci_clear_master(pdev);
5738
5739
RTL_W8(ChipCmd, CmdRxEnb);
0 commit comments