mt76: mt7615: defer mcu initialization via workqueue
authorFelix Fietkau <nbd@nbd.name>
Thu, 5 Dec 2019 10:36:51 +0000 (11:36 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:06:00 +0000 (10:06 +0100)
commitc3c25d09d4ac1fc5eb8795f8904b2f0d42bca1d3
treec1732c3c2d9f7818425928c3629e62c59a858238
parentf0305d182c020d8c6300af461a5b606316b096e8
mt76: mt7615: defer mcu initialization via workqueue

Loading the mcu firmware and waiting for it to boot takes a long time,
which adds a significant amount to the system boot time.
Fix this by running the mcu init from a workqueue and waiting for it to
complete before starting the phy or issuing mcu commands via debugfs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c
drivers/net/wireless/mediatek/mt76/mt7615/init.c
drivers/net/wireless/mediatek/mt76/mt7615/main.c
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h