Skip to content

Commit 868c3b9

Browse files
RealtekNICkuba-moo
authored andcommitted
r8169: fix network lost after resume on DASH systems
Device that support DASH may be reseted or powered off during suspend. So driver needs to handle DASH during system suspend and resume. Or DASH firmware will influence device behavior and causes network lost. Fixes: b646d90 ("r8169: magic.") Cc: stable@vger.kernel.org Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: ChunHao Lin <hau@realtek.com> Link: https://lore.kernel.org/r/20231109173400.4573-3-hau@realtek.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 0ab0c45 commit 868c3b9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4661,10 +4661,16 @@ static void rtl8169_down(struct rtl8169_private *tp)
46614661
rtl8169_cleanup(tp);
46624662
rtl_disable_exit_l1(tp);
46634663
rtl_prepare_power_down(tp);
4664+
4665+
if (tp->dash_type != RTL_DASH_NONE)
4666+
rtl8168_driver_stop(tp);
46644667
}
46654668

46664669
static void rtl8169_up(struct rtl8169_private *tp)
46674670
{
4671+
if (tp->dash_type != RTL_DASH_NONE)
4672+
rtl8168_driver_start(tp);
4673+
46684674
pci_set_master(tp->pci_dev);
46694675
phy_init_hw(tp->phydev);
46704676
phy_resume(tp->phydev);

0 commit comments

Comments
 (0)