mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
usb: dwc2: increase delay time after reset for rk312x
According DWC-OTG databook, after the CSftRst bit is cleared, the application must wait at least 3 PHY clocks before doing any access to the PHY domain. And longer delay is required for some rockchip soc based platforms. But current delay time is not long enough for rk312x and it will result in repeately trigger of ID change interrupt of dwc2 controller. This patch increase delay time from 50 millisecond to 80 millisecond to make sure that dwc2 controller and PHY is synchronized. Change-Id: I4aa5cc3a4ceb8f3e3907c0563ed56ec4a3853a2d Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
This commit is contained in:
committed by
Huang, Tao
parent
675e170adc
commit
fa7692e1ca
@@ -385,7 +385,7 @@ void dwc2_force_dr_mode(struct dwc2_hsotg *hsotg)
|
||||
* NOTE: This is required for some rockchip soc based
|
||||
* platforms.
|
||||
*/
|
||||
msleep(50);
|
||||
msleep(80);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user