]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: connac: fw_own rely on all packet memory all being free
authorSean Wang <sean.wang@mediatek.com>
Mon, 10 May 2021 15:14:51 +0000 (23:14 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sat, 19 Jun 2021 07:22:44 +0000 (09:22 +0200)
commitde983904b80557cdfa36cc8f10c7cc353a4b0166
treeaca80c875f0adf3057f475270cbb1761f516f53c
parentfba3f755f1f291a6493d0a006f7a2228f4b1f1bd
mt76: connac: fw_own rely on all packet memory all being free

If the device is MMIO-based, we must ensure all TxD/TxP on the host
memory all being consumed by the device prior to safely switching to
fw_own state.

Fixes: 48d95921207d ("mt76: connac: check wake refcount in mcu_fw_pmctrl")
Reviewed-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac.h