diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-12-01 10:39:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-01 22:14:21 +0100 |
commit | 398fd408ccfb5e44b1cbe73a209d2281d3efa83c (patch) | |
tree | ad4514db48d711bfec97d3f0fdcc70242617bf65 /drivers/net | |
parent | r8169: fix jumbo configuration for RTL8168evl (diff) | |
download | linux-398fd408ccfb5e44b1cbe73a209d2281d3efa83c.tar.xz linux-398fd408ccfb5e44b1cbe73a209d2281d3efa83c.zip |
r8169: fix resume on cable plug-in
It was reported [0] that network doesn't wake up on cable plug-in with
certain chip versions. Reason is that on these chip versions the PHY
doesn't detect cable plug-in when being in power-down mode. So prevent
the PHY from powering down if WoL is enabled.
[0] https://bugzilla.kernel.org/show_bug.cgi?id=202103
Fixes: 95fb8bb3181b ("net: phy: force phy suspend when calling phy_stop")
Reported-by: jhdskag3 <jhdskag3@tutanota.com>
Tested-by: jhdskag3 <jhdskag3@tutanota.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index 78872cef32ad..38d212686123 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -1542,6 +1542,7 @@ static void __rtl8169_set_wol(struct rtl8169_private *tp, u32 wolopts) rtl_lock_config_regs(tp); device_set_wakeup_enable(tp_to_dev(tp), wolopts); + tp->dev->wol_enabled = wolopts ? 1 : 0; } static int rtl8169_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) |