]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: Fix misplaced PM call for scan_complete_work()
authorTony Lindgren <tony@atomide.com>
Tue, 19 Jun 2018 09:43:38 +0000 (02:43 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Jun 2018 15:44:53 +0000 (18:44 +0300)
commit5c07729d00aa9ab40cc25b68be16aff59d0b2036
tree3a533228c8e1a322dcbf57845a978f50679e67b5
parent6196d55c577a93b5fbd662f45f6138d100505882
wlcore: Fix misplaced PM call for scan_complete_work()

With runtime PM enabled, we now need to have wlcore enabled longer
until after we're done calling wlcore_cmd_regdomain_config_locked():

scan_complete_work()
 wlcore_cmd_regdomain_config_locked()
   wlcore_cmd_send_failsafe()
     wl12xx_sdio_raw_read()

Note that this is not needed before runtime PM support as the
custom PM code had it's own timer. We have not yet enabled runtime
PM autosuspend for wlcore and this is why this issue now shows up.

Let's fix the issues first before we enable runtime PM autosuspend.

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