]> git.baikalelectronics.ru Git - kernel.git/commit
phy: samsung: s5pv210-usb2: Add delay after reset
authorJonathan Bakker <xc-racer2@live.ca>
Sat, 25 Apr 2020 17:36:33 +0000 (10:36 -0700)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 13 May 2020 02:57:35 +0000 (08:27 +0530)
commit9684352036a63e03f9524be7458dd3a9e512c4bf
tree5681b5d19c4cd1c92207cc271577bf2615741599
parent36e777081380bfeeff8041217459dbc5810d643d
phy: samsung: s5pv210-usb2: Add delay after reset

The USB phy takes some time to reset, so make sure we give it to it. The
delay length was taken from the 4x12 phy driver.

This manifested in issues with the DWC2 driver since commit d91d4a4a8069
("usb: dwc2: Make dwc2_readl/writel functions endianness-agnostic.")
where the endianness check would read the DWC ID as 0 due to the phy still
resetting, resulting in the wrong endian mode being chosen.

Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Link: https://lore.kernel.org/r/BN6PR04MB06605D52502816E500683553A3D10@BN6PR04MB0660.namprd04.prod.outlook.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/samsung/phy-s5pv210-usb2.c