[PATCH 0/1 V2][SRU][OEM-5.10] UBUNTU: SAUCE: Fix Ethernet not working by hotplug - RTL8106E

Koba Ko koba.ko at canonical.com
Thu Jun 3 04:20:56 UTC 2021

BugLink: https://bugs.launchpad.net/bugs/1930645

After hot-plug the Ethernet cable, the status of Ethernet is always down.

Because ASPM is enabled on RTL8106E, the link change interrupt can't be fired immediately.
Need to wait a long time to get the link change interrupt.
Introduce a polling method to watch the link status and disable the link change interrupt for RTL8106E.

Due to schedule, SRU this patch first and will upstream later.

Verified on machines with Realtek Ethernet device, the Ethernet works well after hotplug 30 times.

[Regression Potential]
High, may have some cases missed in link change polling method and will fix them in the future.

V2: Fix the format error.

Koba Ko (1):
  r8169: introduce polling method for link change

 drivers/net/ethernet/realtek/r8169.h      |   2 +
 drivers/net/ethernet/realtek/r8169_main.c | 116 +++++++++++++++++++---
 2 files changed, 102 insertions(+), 16 deletions(-)


More information about the kernel-team mailing list