]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mt76: mt792x: add PSE handling barrier for the large MCU cmd
authorSean Wang <sean.wang@mediatek.com>
Thu, 19 Feb 2026 00:40:02 +0000 (18:40 -0600)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Mar 2026 15:49:29 +0000 (15:49 +0000)
commit14a7ba034fcd9d1766503ef44cc491c6fda8db2c
treee5617e6823a28b611245d9bc9ccab1a4304cd18d
parent0a7d2fca06afb036ff2d61540fc68e6e48eb9fbe
wifi: mt76: mt792x: add PSE handling barrier for the large MCU cmd

Add a dummy register read in mt76_connac_mcu_rate_txpower_band() to act as
a PSE barrier. This would release PSE pages and prevents buffer underflow
issues when handling MCU commands with larger payloads without the response
in mt76_connac_mcu_set_rate_txpower().

This is a prerequisite patch before enabling MT7902 PCIe and SDIO support.

Co-developed-by: Xiong Huang <xiong.huang@mediatek.com>
Signed-off-by: Xiong Huang <xiong.huang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/20260219004007.19733-6-sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
drivers/net/wireless/mediatek/mt76/mt792x_regs.h