mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
usb: manual delay 8s to enable connect pc
Android generate Serial number too later than set 1 to sys/class/android_usb/android0/enable. So here we have to manual delay some time to enable usb connect in usb controler driver, otherwise adb read a wrong serial number via usb then CTS test will fail. Signed-off-by: lyz <lyz@rock-chips.com>
This commit is contained in:
@@ -1748,7 +1748,7 @@ static void dwc_otg_pcd_work_init(dwc_otg_pcd_t *pcd,
|
||||
/* host mode,enter usb phy mode */
|
||||
pldata->dwc_otg_uart_mode(pldata, PHY_USB_MODE);
|
||||
}
|
||||
schedule_delayed_work(&pcd->check_id_work, HZ);
|
||||
schedule_delayed_work(&pcd->check_id_work, 8 * HZ);
|
||||
}
|
||||
|
||||
#endif /* DWC_HOST_ONLY */
|
||||
|
||||
Reference in New Issue
Block a user