diff options
author | Tony Lindgren <tony@atomide.com> | 2018-06-19 02:43:42 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-06-27 18:45:24 +0300 |
commit | 9b71578de08748defb3bcae3ce8ed1a75cb6a8d7 (patch) | |
tree | 05b2363aa01bbb31949ea230b0481be2e7c851ac /drivers/net/wireless/ti/wlcore/tx.c | |
parent | wlcore: Make sure firmware is initialized in wl1271_op_add_interface() (diff) | |
download | linux-dev-9b71578de08748defb3bcae3ce8ed1a75cb6a8d7.tar.xz linux-dev-9b71578de08748defb3bcae3ce8ed1a75cb6a8d7.zip |
wlcore: Enable runtime PM autosuspend support
With runtime PM tested working for wlcore with no autosuspend, we can
now enable autosuspend to cut down on enable/disable for interrupts.
Basically we just replace pm_runtime_put() with the autosuspend variants.
Let's use autosuspend delay of 50ms that MMC drivers typically use.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/tx.c')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/tx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/tx.c b/drivers/net/wireless/ti/wlcore/tx.c index 12920d1c1c65..b6e19c2d66b0 100644 --- a/drivers/net/wireless/ti/wlcore/tx.c +++ b/drivers/net/wireless/ti/wlcore/tx.c @@ -881,7 +881,8 @@ void wl1271_tx_work(struct work_struct *work) goto out; } - pm_runtime_put(wl->dev); + pm_runtime_mark_last_busy(wl->dev); + pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); } |