Disable _local_ irq make no sense here and we don't really need
it, if we need to disable usb irqs from dwc_otg call func
dwc_otg_disable_global_interrupts() can be more useful.
container_of(work, dwc_otg_pcd_t, check_vbus_work.work);
struct dwc_otg_device *otg_dev = _pcd->otg_dev;
struct dwc_otg_platform_data *pldata = otg_dev->pldata;
- unsigned long flags;
-
- local_irq_save(flags);
if (!pldata->get_status(USB_STATUS_ID)) {
/* id low, host mode */
}
schedule_delayed_work(&_pcd->check_vbus_work, HZ);
- local_irq_restore(flags);
-
return;
connect:
schedule_delayed_work(&_pcd->reconnect, 8); /* delay 8 jiffies */
schedule_delayed_work(&_pcd->check_vbus_work, (HZ << 2));
- local_irq_restore(flags);
return;
}