r8169: use spinlock to protect mac ocp register access
[ Upstream commit 91c86435 ] 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: 5e864d90 ("r8169: skip DASH fw status checks when DASH is disabled") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment