]> git.ipfire.org Git - thirdparty/kernel/stable.git/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:07:31 +0000 (13:07 +0200)
commit891fd07da87b518144ebf611acecadd3144776dc
treea2ac8a6fca9a3b244adbb468b9395e88f2704e02
parentc39e75fae05c742a98eac21bda6dbbd171afff40
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