]> git.baikalelectronics.ru Git - kernel.git/commit
staging: hikey9xx: phy-hi3670-usb3: adjust retry logic
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 19 Jan 2021 10:44:40 +0000 (11:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jan 2021 17:49:20 +0000 (18:49 +0100)
commitedf5b1aa221c98f378c0cf248e468770ea0fbcee
treea98cb861341a377bab7bcaafb53f2cf540ecbea0
parenteb7e24a758bfa7f7c453ab91d0bc33c9c81a8a64
staging: hikey9xx: phy-hi3670-usb3: adjust retry logic

Instead of running a loop up to 100k times, add a small
delay inside it, running it up to 10 times, waiting up
to 100-200 us.

It should be noticed that I don't have the datasheet for
this PHY. So, not sure if this time will cover all
situations.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/b653d7d6073de176598a5026c41b1a845f360c9e.1611052729.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/hikey9xx/phy-hi3670-usb3.c