mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-13 05:45:24 +08:00
There is a possibility of PMI detecting SDP as a floating charger when connected to a PC. Workaround this issue by starting peripheral stack for floating charger as well. After 10 sec check for USB device enumeration using gadget USB state. If device is indeed connected to SDP gadget usb state will be USB_STATE_DEFAULT or higher. Change-Id: I9b8f9ee0611277b2ff86a4855da783d47820cf2a Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>