Files
linux/drivers
Heiner Kallweit a33b7cb184 r8169: use spinlock to protect mac ocp register access
[ Upstream commit 91c8643578 ]

For disabling ASPM during NAPI poll we'll have to access mac ocp
registers in atomic context. This could result in races because
a mac ocp read consists of a write to register OCPDR, followed
by a read from the same register. Therefore add a spinlock to
protect access to mac ocp registers.

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>
Stable-dep-of: 5e864d90b2 ("r8169: skip DASH fw status checks when DASH is disabled")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-10 16:28:29 +02:00
..
2024-04-03 15:19:32 +02:00
2024-04-10 16:28:23 +02:00
2024-04-03 15:19:42 +02:00
2023-11-20 11:52:05 +01:00
2024-02-05 20:12:47 +00:00
2024-04-03 15:19:45 +02:00
2024-04-10 16:28:21 +02:00
2024-04-03 15:19:46 +02:00
2024-01-20 11:50:10 +01:00
2024-03-26 18:21:00 -04:00