]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdns3: fix cdns3_core_init_role()
authorRoger Quadros <rogerq@ti.com>
Mon, 7 Oct 2019 12:16:00 +0000 (15:16 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 10:42:08 +0000 (12:42 +0200)
commit3e01ed551c9583937264c027a5e6cd1c521b8873
tree2e0b9a4608a6f55e8bb86cf247007bb7cb27bfe2
parentb77e63aedde3f00ccc6791beec4becd114a71ff7
usb: cdns3: fix cdns3_core_init_role()

At startup we should trigger the HW state machine
only if it is OTG mode. Otherwise we should just
start the respective role.

Initialize idle role by default. If we don't do this then
cdns3_idle_role_stop() is not called when switching to
host/device role and so lane switch mechanism
doesn't work. This results to super-speed device not working
in one orientation if it was plugged before driver probe.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Link: https://lore.kernel.org/r/20191007121601.25996-2-rogerq@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/core.c