unsigned interval;
/* host role must be active */
- if (!is_host_active(musb) || !musb->is_active)
+ if (!is_host_active(musb) || !musb->is_active) {
+ printk(KERN_ERR "musb is_host_active %d is_active %d\n",is_host_active(musb),musb->is_active);
return -ENODEV;
+ }
spin_lock_irqsave(&musb->lock, flags);
ret = usb_hcd_link_urb_to_ep(hcd, urb);
return 0;
}
+
const struct hc_driver musb_hc_driver = {
.description = "musb-hcd",
.product_desc = "MUSB HDRC host driver",
.hub_control = musb_hub_control,
.bus_suspend = musb_bus_suspend,
.bus_resume = musb_bus_resume,
- /* .start_port_reset = NULL, */
/* .hub_irq_enable = NULL, */
};