Skip to content
Commit 6c7103aa authored by Andreas Kemnade's avatar Andreas Kemnade Committed by Kishon Vijay Abraham I
Browse files

phy: phy-twl4030-usb: fix denied runtime access



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: default avatarAndreas Kemnade <andreas@kemnade.info>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 979b519c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment