OpenCloudOS-Kernel/drivers/net/wireless/ti/wl18xx
Tony Lindgren fa2648a34e wlcore: Add support for runtime PM
We can update wlcore to use PM runtime by adding functions for
wlcore_runtime_suspend() and wlcore_runtime_resume() and replacing
calls to wl1271_ps_elp_wakeup() and wl1271_ps_elp_sleep() with calls
to pm_runtime_get_sync() and pm_runtime_put().

Note that the new wlcore_runtime_suspend() and wlcore_runtime_resume()
functions are based on simplified versions of wl1271_ps_elp_sleep() and
wl1271_ps_elp_wakeup().

We don't want to use the old functions as we can now take advantage of
the runtime PM usage count. And we don't need the old elp_work at all.
And we can also remove WL1271_FLAG_ELP_REQUESTED that is no longer needed.

Pretty much the only place where we are not just converting the existing
functions is wl1271_op_suspend() where we add pm_runtime_put_noidle()
to keep the calls paired.

As the next step is to implement runtime PM autosuspend, let's not add
wrapper functions for the generic runtime PM calls. We would be getting
rid of any wrapper functions anyways.

After autoidle we should be able to start using Linux generic wakeirqs
for the padconf interrupt.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-06-27 18:44:47 +03:00
..
Kconfig wl18xx: add dependency on mac80211 2012-06-05 17:16:09 +03:00
Makefile wlcore: update events enum/struct to new fw api 2012-11-27 10:49:29 +02:00
acx.c wl18xx: add time sync configuration api 2016-09-03 20:02:34 +03:00
acx.h wl18xx: add time sync configuration api 2016-09-03 20:02:34 +03:00
cmd.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
cmd.h wlcore: add dfs master restart calls 2015-01-09 15:48:01 +02:00
conf.h wlcore: split wl12xx/wl18xx sg parameters 2015-12-11 13:10:59 +02:00
debugfs.c wlcore: Add support for runtime PM 2018-06-27 18:44:47 +03:00
debugfs.h wl18xx: implement fw status debugfs entries 2012-06-05 15:58:16 +03:00
event.c wlcore: Add RX_BA_WIN_SIZE_CHANGE_EVENT event 2016-11-17 08:38:05 +02:00
event.h wlcore: Add RX_BA_WIN_SIZE_CHANGE_EVENT event 2016-11-17 08:38:05 +02:00
io.c wl18xx: fix bogus compile warning on cc config option 2012-07-18 15:08:21 +03:00
io.h wlcore: Force checking of io functions' return values 2012-06-22 10:49:45 +03:00
main.c wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
reg.h wl18xx: wlan_irq: support platform dependent interrupt types 2015-05-09 16:42:27 +03:00
scan.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
scan.h wl18xx: use long intervals in sched scan 2015-08-10 22:16:21 +03:00
tx.c wlcore/wl18xx: Add functionality to accept TX rate per link 2016-07-18 22:35:34 +03:00
tx.h wl18xx: pad only last frame in aggregration buffer for PG2 2012-06-07 18:11:06 +03:00
wl18xx.h wlcore/wl18xx: Add functionality to accept TX rate per link 2016-07-18 22:35:34 +03:00