]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: Add extra delay when forcing dr_mode
authorJohn Youn <John.Youn@synopsys.com>
Mon, 15 Feb 2016 23:30:20 +0000 (15:30 -0800)
committerFelipe Balbi <balbi@kernel.org>
Wed, 17 Feb 2016 08:31:42 +0000 (10:31 +0200)
commitaa6923ec65c495d0fb28e20938fd6bffdbb35e5c
treec6eebfca1d72e2e311a8b7c06be7606a694d52c6
parentcec9e4ee725e4528d0eb4d038d1cac55718d59c0
usb: dwc2: Add extra delay when forcing dr_mode

Fixes an issue found on rockchip rk3036 and rk3188 SOC platforms. For
some reason, the existing msleep(25) is not enough after the force mode.
The following patch was reported to fix the issue.

This does increase the probe delay again slightly, but not up to the
level it was before the original series of patches that this fixes. It
does not cause any other issues when tested on Synopsys HAPS and Altera
socfpga platforms.

Need to revisit this series next release to see if we can address these
issues without having an unconditional delay.

Fixes: e7dcc51f2623 ("usb: dwc2: Add functions to set and clear force mode")
Reported-by: Caesar Wang <caesar.upstream@gmail.com>
Reported-by: Michael Niewoehner <linux@mniewoehner.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Caesar Wang <caesar.upstream@gmail.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc2/core.c