diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2023-03-07 00:23:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-08 12:30:41 +0300 |
commit | 91c8643578a21e435c412ffbe902bb4b4773e262 (patch) | |
tree | fa3c08969acc6c784fee8077cdd0946e432bb901 /drivers/hid/hid-sony.c | |
parent | 8ca5a5790b9a1ce147484d2a2c4e66d2553f3d6c (diff) | |
download | linux-91c8643578a21e435c412ffbe902bb4b4773e262.tar.xz |
r8169: use spinlock to protect mac ocp register access
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>
Diffstat (limited to 'drivers/hid/hid-sony.c')
0 files changed, 0 insertions, 0 deletions