mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: usb: fix hw initialization sequence
mt76u_alloc_queues need to be called before mt76u_mcu_init_rx
since it initializes rx_page_lock spinlock used in mt76u_buf_alloc
routine.
Fixes: b11e19694dc9 ("mt76x0: add ieee80211_ops ops pointer to
mt76x0_alloc_device signature")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
05c7f24bfa
commit
6856ef62bf
+1
-1
@@ -262,7 +262,7 @@ int mt76x2u_register_device(struct mt76x2_dev *dev)
|
||||
|
||||
err = mt76u_mcu_init_rx(&dev->mt76);
|
||||
if (err < 0)
|
||||
return err;
|
||||
goto fail;
|
||||
|
||||
err = mt76x2u_init_hardware(dev);
|
||||
if (err < 0)
|
||||
|
||||
Reference in New Issue
Block a user