]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
r8169: use spinlock to protect access to registers Config2 and Config5
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 5 Jun 2023 03:27:00 +0000 (05:27 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Jun 2023 13:21:23 +0000 (15:21 +0200)
commite9f58003a2c793704f278bd2bea2d3388e222fc3
tree3dff61a2f6cf21707f946aff31b5e7480d9ad2fc
parent92949a78a86af5e100f8f9422e54282c7fffed1f
r8169: use spinlock to protect access to registers Config2 and Config5

BugLink: https://bugs.launchpad.net/bugs/1946433
For disabling ASPM during NAPI poll we'll have to access both registers
in atomic context. Use a spinlock to protect access.

Reviewed-by: Simon Horman <simon.horman@corigine.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 6bc6c4e6893ee79a9862c61d1635e7da6d5a3333)
Signed-off-by: Koba Ko <koba.ko@canonical.com>
Acked-by: Andrei Gherzan <andrei.gherzan@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/realtek/r8169_main.c