linux/drivers/net/wireless/ti
Tony Lindgren 728a9dc61f wlcore: sdio: Fix flakey SDIO runtime PM handling
We can have pm_runtime_get_sync() return 1, and we can have
pm_runtime_put_sync() return -EBUSY. See rpm_suspend() and
rpm_resume() for more information.

Fix the issue by returning 0 from wl12xx_sdio_power_on() on success.
And use pm_runtime_put() instead of pm_runtime_put_sync() for
wl12xx_sdio_power_off(), then the MMC subsystem will idle the bus
when suitable.

Otherwise wlcore can sometimes get confused and may report bogus
errors and WLAN connection can fail.

Note that while wlcore checks the return value for wl1271_power_on(),
the return value is ignored for wl1271_power_off(). Let's fix them
both though to avoid further confusion in the future.

Fixes: 60f36637bb ("wlcore: sdio: allow pm to handle sdio power")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-05-29 10:14:45 +03:00
..
wl12xx wlcore/wl12xx: Fix fw logger over sdio 2016-05-11 21:26:15 +03:00
wl18xx wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
wl1251 wireless-drivers-next patches for 4.17 2018-03-25 21:27:38 -04:00
wlcore wlcore: sdio: Fix flakey SDIO runtime PM handling 2018-05-29 10:14:45 +03:00
Kconfig net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wilink_platform_data.c wlcore: remove wl12xx_platform_data 2015-03-24 09:48:14 -07:00