]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Aug 2017 10:51:37 +0000 (12:51 +0200)
commit941ed36c43bb19427dbcd2a7c603672081a60a4b
tree71b4264af8587d747b1aed2be8d45a3e93783942
parent7e4ffa524f325e7d697856feea260fe47652889d
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>
(cherry picked from commit 15fddd0d508b672385f4fd6fed33c179a7943c5d)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/usb/phy/phy-msm-usb.c