]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mt76: mt7615: fix a leftover race in runtime-pm
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 30 Dec 2021 20:47:06 +0000 (21:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:02 +0000 (13:58 +0200)
commitdb0d4b78f3f627ea483b13948f965007cc5f4ccd
tree53e62df8863e2b805deb70bffa19731ce6c241bc
parent299d5320d48482d2937d5cecf5678d118847faf5
mt76: mt7615: fix a leftover race in runtime-pm

[ Upstream commit 42ce8d3b623162f3248db50a38359f294e6b06fd ]

Fix a possible race in mt7615_pm_power_save_work() if rx/tx napi
schedules ps_work and we are currently accessing device register
on a different cpu.

Fixes: db928f1ab9789 ("mt76: mt7663: rely on mt76_connac_pm_ref/mt76_connac_pm_unref in tx/rx napi")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c