Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 0/2] wifi: mt76: mt7615: fix mt7622 wmac init
@ 2026-10-25 12:32 Francesco Palmarini via B4 Relay
  2026-10-25 12:32 ` [PATCH 1/2] wifi: mt76: mt7615: fix lost first mcu event on mt7622 Francesco Palmarini via B4 Relay
  2026-10-25 12:32 ` [PATCH 2/2] wifi: mt76: mt7615: release patch semaphore on timeout Francesco Palmarini via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Francesco Palmarini via B4 Relay @ 2026-10-25 12:32 UTC (permalink / raw)
  To: Felix Fietkau, Lorenzo Bianconi, Ryder Lee
  Cc: Shayne Chen, Sean Wang, linux-wireless, linux-mediatek,
	Francesco Palmarini

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

Signed-off-by: Francesco Palmarini <palmarini@unive.it>
---
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,
--  
Francesco Palmarini <palmarini@unive.it>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-25 12:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-25 12:32 [PATCH 0/2] wifi: mt76: mt7615: fix mt7622 wmac init Francesco Palmarini via B4 Relay
2026-10-25 12:32 ` [PATCH 1/2] wifi: mt76: mt7615: fix lost first mcu event on mt7622 Francesco Palmarini via B4 Relay
2026-10-25 12:32 ` [PATCH 2/2] wifi: mt76: mt7615: release patch semaphore on timeout Francesco Palmarini via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox