コード例 #1
0
void dwc_udc_startup(void)
{
	//if usb cable  not connect, do nothing
	if (!cable_is_connected()) {
		pr_warning("usb cable is not connect\n");
		return;
	}
	//udc not startup, startup udc and get a wacklock
	mutex_lock(&udc_lock);
	__udc_startup();
	mutex_unlock(&udc_lock);
}
コード例 #2
0
void dwc_udc_startup(void)
{
	//if usb cable  not connect, do nothing
#if 0	// not to check cable status temporary
	if (!cable_is_connected()) {
		pr_warning("usb cable is not connect\n");
		return;
	}
#endif
	//udc not startup, startup udc and get a wacklock
	mutex_lock(&udc_lock);
	__udc_startup();
	mutex_unlock(&udc_lock);
}