]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7915: mcu: re-init MCU before loading FW patch
authorDavid Bauer <mail@david-bauer.net>
Wed, 2 Apr 2025 00:45:27 +0000 (02:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:22 +0000 (16:28 +0200)
commitb6c39aaa85c4ea0a907447fb18970393b13294fe
tree6af842117ab3e3493b86d89deeaf0693831d23c4
parent51eb6a5f209b05cd036dbc91029d38395a18d00d
wifi: mt76: mt7915: mcu: re-init MCU before loading FW patch

[ Upstream commit ac9c50c79eaef5fca0f165e45d0c5880606db53e ]

Restart the MCU and release the patch semaphore before loading the MCU
patch firmware from the host.

This fixes failures upon error recovery in case the semaphore was
previously taken and never released by the host.

This happens from time to time upon triggering a full-chip error
recovery. Under this circumstance, the hardware restart fails and the
radio is rendered inoperational.

Signed-off-by: David Bauer <mail@david-bauer.net>
Link: https://patch.msgid.link/20250402004528.1036715-3-mail@david-bauer.net
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c