]> git.itanic.dy.fi Git - linux-stable/commit
wifi: mt76: mt7915: add locking for accessing mapped registers
authorShayne Chen <shayne.chen@mediatek.com>
Tue, 15 Aug 2023 09:28:30 +0000 (17:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:10:00 +0000 (13:10 +0200)
commit9864f58eb22fcff46ac5edee71c7ecfab81261d8
tree96b40fe76f644b247f37cceeeff032ca03a7e43e
parent2505a75a38f2048b88932373c1e519c52b4ca07d
wifi: mt76: mt7915: add locking for accessing mapped registers

[ Upstream commit 0937f95ab07af6e663ae932d592f630d9eb591da ]

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>
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h