]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: phy: msm: Fix state machine worker logic for OTG mode.
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 5 Feb 2016 11:50:40 +0000 (11:50 +0000)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Fri, 5 Feb 2016 12:50:02 +0000 (13:50 +0100)
commit15fddd0d508b672385f4fd6fed33c179a7943c5d
tree678d3592d5baa8044c143ef3305a9e1cd1387032
parent81b32c972b83d0c27d3a3c3f0fb8c899a3fa1ffe
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>
drivers/usb/phy/phy-msm-usb.c