usb: dwc3: rockchip: use msleep() for long delays
ulseep_range() uses hrtimers and provides no advantage over msleep() for larger delays. Fix up the 20+ ms delays here passing the adjusted "min" value to msleep(). Change-Id: Ideb6798d3a9465b64dee5aaf78a73054474dd017 Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
parent
e9de2f7032
commit
9cd51a5d78
1 changed files with 2 additions and 2 deletions
|
|
@ -322,8 +322,8 @@ static ssize_t dwc3_rockchip_host_testmode_write(struct file *file,
|
|||
EXTCON_PROP_USB_TYPEC_POLARITY, property);
|
||||
extcon_set_cable_state_(edev, EXTCON_USB_HOST, true);
|
||||
|
||||
/* Add a delay 1~1.5s to wait for XHCI HCD init */
|
||||
usleep_range(1000000, 1500000);
|
||||
/* Add a delay 1s to wait for XHCI HCD init */
|
||||
msleep(1000);
|
||||
}
|
||||
|
||||
dwc3_rockchip_set_test_mode(rockchip, testmode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue