This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: phy: msm: Fix state machine worker logic for OTG mode.
Issue is that if the board is booted without micro usb cable and usb device attached, kernel fails to populate the usb host and device. The reason for this is that the state machine worker logic only checks for USB_DR_MODE_PERIPHERAL and USB_DR_MODE_HOST modes to run worker thread. However if the phy is configured in OTG mode it would fail to run the state machine, resulting in failure to detect for very first time. This patch fixes by adding OTG checks in to the logic. Issue is noticed on Qualcomm Dragon board DB410C. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
- Loading branch information