mt76: mt7921: fix the insmod hangs
authorSean Wang <sean.wang@mediatek.com>
Tue, 6 Apr 2021 03:34:37 +0000 (11:34 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 12 Apr 2021 21:07:24 +0000 (23:07 +0200)
commit49897c529f85504139a6e54417a65f26a07492d2
treefce9c27d1af2490f8b8efb60afbf106fd1f62a82
parente230f0c44f011f3270680a506b19b7e84c5e8923
mt76: mt7921: fix the insmod hangs

Fix the second insert module causing the device hangs after remove module.

Fixes: 1c099ab44727 ("mt76: mt7921: add MCU support")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/init.c
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h