Skip to content

wifi: mt76: mt7615: fix mt7622 wmac init

Francesco Palmarini b4-sent linux-mediatek linux-wireless 1 version New

Get series with b4
b4 am [email protected] change-id 20261025-mt7622-patch-sem-3d455fcf645f

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: mt76: mt7615: fix lost first mcu event on mt7622drivers/net/wireless/mediatek/mt76/mt7615/mac.c+23 -00 replies
2/2wifi: mt76: mt7615: release patch semaphore on timeoutdrivers/net/wireless/mediatek/mt76/mt7615/mcu.c+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] wifi: mt76: mt7615: fix mt7622 wmac init

On MT7622 the 2.4 GHz wmac fails to come up on most boots with "Failed to get patch semaphore". The rom does grant the semaphore, but its reply to the first PATCH_SEM_CONTROL lands on the data ring with an extra dword in front and gets dropped as tx status, so every retry finds the semaphore already taken.

Patch 1 handles the shifted event, patch 2 releases the semaphore after a timeout so a lost reply can't block the init anymore.

Tested on a Xiaomi AX3200 (same hw as Redmi AX6S) running OpenWrt 25.12.6: 0 of 5 boots ok before, 15 of 15 with both patches. Build tested on wireless-next.

OpenWrt reports of the same failure:
https://github.com/openwrt/openwrt/issues/14874
https://github.com/openwrt/openwrt/issues/17565

---
Francesco Palmarini (2):
wifi: mt76: mt7615: fix lost first mcu event on mt7622
wifi: mt76: mt7615: release patch semaphore on timeout

 drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 23 +++++++++++++++++++++++
 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c |  4 ++++
 2 files changed, 27 insertions(+)

---
base-commit: 734bef548a96e8774d6eef5dfa2026c6edc4e80b
change-id: 20261025-mt7622-patch-sem-3d455fcf645f

Best regards,

Signature · 1 line
Francesco Palmarini <[email protected]>