wlcore: sdio: allow pm to handle sdio power
authorEyal Reizer <eyalreizer@gmail.com>
Thu, 26 Apr 2018 05:47:11 +0000 (08:47 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Apr 2018 10:30:42 +0000 (13:30 +0300)
commit60f36637bbbdeea199d644eda284dba5144d2377
tree6b9ef61c563437f821e5615dba3490b19c1fbd4c
parent3ff6ee28535f2f6698cc2b3acfd2af6942036067
wlcore: sdio: allow pm to handle sdio power

pm_runtime handles sdio power on and power off transitions.
An old workaround for trying to control the power explicitly from the
driver was in fact causing failures on suspend/resume as the mmc layer
already power the module on resume.

In case of resume pm_runtime_get sync returns a positive device's usage
count causing the driver to try an re-initialize an already initialized
device. This was causing sdio bus failure on resume.

Remove this manual power on/off sequence as it is in-fact not needed.

Signed-off-by: Eyal Reizer <eyalr@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/sdio.c