USB: phy-msm-usb: Fix poweroff charging issue
In poweroff charging, when cable is connected, it is required
to charge the device and when cable is disconnected, device should
be poweroff. But on some platforms, when multiple cores are active
there is a chance that suspend handler and disconnect processing
race each other and leads to notifying 2mA as part of suspend
handling after disconnect processing. This results in setting
online property to true evenafter cable disconnect and causes
device not to be powered down in poweroff charging mode. Hence
fix issue by handle this corner case in otg driver.
CRs-Fixed: 740220
Change-Id: I3c6dbcb8a76f9d0c5f75de5c3c602272963aa9db
Signed-off-by:
Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Loading
Please register or sign in to comment