USB: phy: msm: Fix poweroff charging issue
During bootup, if cable is connected, PMIC does set online property
of USB power supply and then notifies charger type and cable connect
status to USB driver. If disconnect happens during this time, USB
driver need to clear online flag. But this causes issues in case of
power off charging mode if msm_otg_notify_charger() with 0mA current.
Hence fix this by having check for charger type is invalid and then
only clear online property.
CRs-Fixed: 1058664
Change-Id: Ibb9e9ba7045d5261cc10fdb5737c1c6e1151dac3
Signed-off-by:
Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Loading
Please register or sign in to comment