]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7487b68dbcfe3a978210c23f06141b9ce72f7879
treec1732c3c2d9f7818425928c3629e62c59a858238
parent747d3b8b82e5bf6e471a6bc56dc8d93b01d6854b
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