wifi: mt76: mt7915: add locking for accessing mapped registers

[ Upstream commit 0937f95ab0 ]

Sicne the mapping is global, mapped register access needs to be protected
against concurrent access, otherwise a race condition might cause the reads
or writes to go towards the wrong register

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Shayne Chen 2023-08-15 17:28:30 +08:00 • committed by Greg Kroah-Hartman
commit 891fd07da8
2 changed files with 41 additions and 5 deletions