]> asedeno.scripts.mit.edu Git - linux.git/commit
mt76: usb: fix hw initialization sequence
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Wed, 3 Oct 2018 10:52:25 +0000 (12:52 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 5 Oct 2018 18:05:44 +0000 (20:05 +0200)
commit0536478cba710bedf798602df85c28953b69cf76
tree180519692696b6e9d49c355421c3991bf973433e
parentc87dff8cc39a2da52d98949cc1f3e9befd19cb83
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 <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/usb.c
drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c