Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

r8169: remove not needed call to rtl_wol_enable_rx from rtl_shutdown

rtl_wol_enable_rx() is called via the following call chain if WoL
is enabled:
rtl8169_down()
-> rtl_prepare_power_down()
-> rtl_wol_enable_rx()
Therefore we don't have to call this function here.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/34ce78e2-596c-e2ac-16aa-c550fa624c22@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
17ce76c4 275b1e88

+1 -3
+1 -3
drivers/net/ethernet/realtek/r8169_main.c
··· 4850 4850 rtl_rar_set(tp, tp->dev->perm_addr); 4851 4851 4852 4852 if (system_state == SYSTEM_POWER_OFF) { 4853 - if (tp->saved_wolopts) { 4854 - rtl_wol_enable_rx(tp); 4853 + if (tp->saved_wolopts) 4855 4854 rtl_wol_shutdown_quirk(tp); 4856 - } 4857 4855 4858 4856 pci_wake_from_d3(pdev, tp->saved_wolopts); 4859 4857 pci_set_power_state(pdev, PCI_D3hot);