mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7615: stop mcu first in mt7615_unregister_device
Stop mcu engine and then dma one in mt7615_unregister_device in order to avoid a mcu hang in mt7615_unregister_device Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
a0f51f2761
commit
753cdee4f6
+1
-1
@@ -213,8 +213,8 @@ void mt7615_unregister_device(struct mt7615_dev *dev)
|
||||
int id;
|
||||
|
||||
mt76_unregister_device(&dev->mt76);
|
||||
mt7615_dma_cleanup(dev);
|
||||
mt7615_mcu_exit(dev);
|
||||
mt7615_dma_cleanup(dev);
|
||||
|
||||
spin_lock_bh(&dev->token_lock);
|
||||
idr_for_each_entry(&dev->token, txwi, id) {
|
||||
|
||||
Reference in New Issue
Block a user