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:
lyz
2015-01-10 19:08:16 +08:00
parent 93c355776d
commit 9ef0cc445e

View File

@@ -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 */