mt76: mt7663s: fix the possible device hang in high traffic

[ Upstream commit 45247a8561 ]

Use the additional memory barrier to ensure the skb list up-to-date
between the skb producer and consumer to avoid the invalid skb content
written into sdio controller and then cause device hang due to mcu assert
caught by WR_TIMEOUT_INT.

Fixes: 1522ff731f ("mt76: mt7663s: introduce sdio tx aggregation")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Sean Wang 2021-03-04 21:25:23 +08:00 • committed by Greg Kroah-Hartman
commit de4e60382b
2 changed files with 5 additions and 0 deletions