USB: phy: Fix clearing of Vbus based ID clear on bootup
Some platform devices like smart audio platform devices should be
enumerated as USB HOST if there is no usb_vbus on bootup. Since the
ID state marked as FLOAT on bootup device fails to enumerate as
USB HOST also, usb role switch/swap fails when do multiple connect and
disconnect of usb cable even PMI notifies removal of usb_vbus. Fix this
by setting ID state as GROUND and clear USB_ID if there is no usb_vbus
on bootup and also, as we cleared USB_ID on removal of vbus avoid
checking for ID GROUND this fix usb role swap failure on multiple
connect/disconnect.
CRs-Fixed: 2058197
Change-Id: I327a82215ab770142d69ee34de8d3e0d0f25c09a
Signed-off-by:
Arumuga Durai A <cadurai@codeaurora.org>
Loading
Please register or sign in to comment