• Tony Lindgren's avatar
    wlcore: Fix misplaced PM call for scan_complete_work() · 3ebbabea
    Tony Lindgren authored
    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: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    3ebbabea
scan.c 12.5 KB