wifi: mt76: mt7615: fix mt7622 wmac init
Get series with b4
b4 am [email protected] change-id 20261025-mt7622-patch-sem-3d455fcf645fVersions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | wifi: mt76: mt7615: fix lost first mcu event on mt7622drivers/ | +23 | 0 replies | |
| 2/2 | wifi: mt76: mt7615: release patch semaphore on timeoutdrivers/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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]>