]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: Make sure firmware is initialized in wl1271_op_add_interface()
authorTony Lindgren <tony@atomide.com>
Tue, 19 Jun 2018 09:43:41 +0000 (02:43 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Jun 2018 15:45:22 +0000 (18:45 +0300)
commitdcda775f1d1541cbd23e5beb722e294a45baf4b6
treeffdc192d69524475ad8aab42625e42a44fa3d889
parent88d4e363628eafa356aff9c88494e32057b9cbb3
wlcore: Make sure firmware is initialized in wl1271_op_add_interface()

We have wl12xx_boot() call wl12xx_enable_interrupts() and if we have
wl1271_op_add_interface() call pm_runtime_get_sync() before the interrupts
are enabled. And then we get the following error during boot:

wlcore: ERROR ELP wakeup timeout!

Let's fix this by first checking if we need to boot the firmware. And
only after that call pm_runtime_get_sync() when interrupts are enabled.
And only after that do the check for wl12xx_need_fw_change().

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/main.c