Runtime PM support for wlcore
Quoted 8 lines
Quoted 5 lines
Here's a modified version of your patch, does that put wlcore to idle with wowlan during suspend for you?
Still no joy.
It suspends/resumes ok but leaves the firmware disabled from entering ELP.
Spent some time on it today and looks like adding calls to pm_generic_runtime_suspend () And pm_generic_runtime_resume is helping and all seems to work well.
See the modified version of your patch below.
Let me know what you think.
Best Regards,
Eyal
8< ------------------------------
(quoted diff) +0 -0
b/drivers/net/wireless/ti/wlcore/main.c
index 4c297aa..9859e5a 100644
drivers/net/wireless/ti/wlcore/main.c +10 -37
78 lines not on this page · raw message
Quoted 11 lines · Reizer, Eyal
Quoted 8 lines
Quoted 5 lines
Here's a modified version of your patch, does that put wlcore to idle with wowlan during suspend for you?
Still no joy.
It suspends/resumes ok but leaves the firmware disabled from entering ELP.Spent some time on it today and looks like adding calls to
pm_generic_runtime_suspend() Andpm_generic_runtime_resumeis helping and all seems to work well.
Oh right yeah you got it, I totally forgot about those.
Quoted 2 lines
See the modified version of your patch below.
Let me know what you think.
Looks good to me, one comment below..
drivers/net/wireless/ti/wlcore/main.c static int wl1271_op_suspend(struct ieee80211_hw *hw, · line 1804
Quoted 8 lines
drivers/net/wireless/ti/wlcore/main.c +5
-1-wlcore_fw_sleep (wl); +spin_lock_irqsave (&wl->wl_lock, flags); +set_bit (WL1271_FLAG_SUSPENDED , &wl->flags); +spin_unlock_irqrestore (&wl->wl_lock, flags); + +pm_generic_runtime_suspend (wl->dev);return 0 ;
Maybe just return pm_generic_runtime_suspend(wl->dev) here?
drivers/net/wireless/ti/wlcore/main.c static int wl1271_op_resume(struct ieee80211_hw *hw) · line 1820
Quoted 6 lines
drivers/net/wireless/ti/wlcore/main.c +2
-0@@ -1845,6 +1816,8 @@ static int wl1271_op_resume(struct ieee80211_hw *hw) wl->wow_enabled);WARN_ON (!wl->wow_enabled); +pm_generic_runtime_resume (wl->dev); +
And add error handling to pm_generic_runtime_resume(wl->dev) here?
Then if you can please post your patch with proper Signed-off-by I'll add it to my set and repost v3 of all the patches :)
Regards,
Tony