Files
Andreas Kemnade 0623749e14 phy: phy-twl4030-usb: fix denied runtime access
[ Upstream commit 6c7103aa02 ]

When runtime is not enabled, pm_runtime_get_sync() returns -EACCESS,
the counter will be incremented but the resume callback not called,
so enumeration and charging will not start properly.
To avoid that happen, disable irq on suspend and recheck on resume.

Practically this happens when the device is woken up from suspend by
plugging in usb.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-25 09:52:50 +01:00
..
2015-12-20 15:21:38 +05:30