APPLIED: [PATCH 0/1][SRU][H] Fix this missing NIC after resume

Kelsey Skunberg kelsey.skunberg at canonical.com
Fri Aug 6 21:09:41 UTC 2021


Applied to Hirsute master-next. Thank you! 

-Kelsey

On 2021-07-15 21:20:36 , chris.chiu at canonical.com wrote:
> From: Chris Chiu <chris.chiu at canonical.com>
> 
> BugLink: https://bugs.launchpad.net/bugs/1931301
> 
> [SRU Justification]
> 
> [Impact]
> The network card will be unavailable after system resume if the interface is not UP before suspend.
> 
> [Fix]
> It's because we added the WOL support for this driver. The driver with WoL feature does detach the network interface even the interface is DOWN. However, it doesn't attach the network interface back on resume if it was DOWN. That's why it's unavailable after resume. Fix this by correctly netif_device_attach according to the interface status.
> 
> [Test Case]
> 1. Plug the ethernet cable to the Atheros E220x ethernet adapter
> 2. Suspend the system and check if the ethernet interface available after resume
> 3. Unplug the ethernet cable
> 4. Suspend the system and check if the ethernet interface available after resume
> 
> [Regression Potential]
> Low. The driver code would be identical to working Groovy version after fix.
> 
> Chris Chiu (1):
>   UBUNTU: SAUCE: Revert "ethernet: alx: fix order of calls on resume"
> 
>  drivers/net/ethernet/atheros/alx/main.c | 17 ++++++++---------
>  1 file changed, 8 insertions(+), 9 deletions(-)
> 
> -- 
> 2.25.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team



More information about the kernel-team mailing list