author | George Cherian <george.cherian@ti.com> | |
Fri, 9 Jan 2015 14:49:22 +0000 (20:19 +0530) | ||
committer | Franklin S. Cooper Jr <fcooper@ti.com> | |
Fri, 6 Feb 2015 23:51:20 +0000 (17:51 -0600) | ||
commit | cc81f24815ada744532a72324994c9b451301ea2 | |
tree | c488c98804535b43ef5fce525689f2690b8325c3 | tree | snapshot (tar.xz tar.gz zip) |
parent | b54bb180f2b2c105e53b6cb68064e7183661029f | commit | diff |
usb: dwc3: otg: fix failed enumeration at boot
We need 2 separate writes to OCTL register. First to set to HOST mode
and then to enable the PORT power. If written in single shot devices
never get detected at boot time. This is because the OTG internal
state machine disables Port power when it enters A_IDLE.
Fix that by waiting till OTG state machine enters A_IDLE and then
set the PORT power.
Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
We need 2 separate writes to OCTL register. First to set to HOST mode
and then to enable the PORT power. If written in single shot devices
never get detected at boot time. This is because the OTG internal
state machine disables Port power when it enters A_IDLE.
Fix that by waiting till OTG state machine enters A_IDLE and then
set the PORT power.
Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/usb/dwc3/otg.c | diff | blob | history |