}
/** Gets the struct usb_hcd that contains a dwc_otg_hcd_t. */
-inline struct usb_hcd *dwc_otg_hcd_to_hcd(dwc_otg_hcd_t *dwc_otg_hcd)
+static inline struct usb_hcd *dwc_otg_hcd_to_hcd(dwc_otg_hcd_t *dwc_otg_hcd)
{
return dwc_otg_hcd_get_priv_data(dwc_otg_hcd);
}
-EXPORT_SYMBOL(dwc_otg_hcd_to_hcd);
-
/** Gets the usb_host_endpoint associated with an URB. */
inline struct usb_host_endpoint *dwc_urb_to_endpoint(struct urb *urb)
{
_core_if->hcd_cb->disconnect(_core_if->hcd_cb->p);
}
#endif
- pldata->soft_reset();
+ pldata->soft_reset(pldata, RST_RECNT);
dwc_otg_disable_host_interrupts(core_if);
if (pldata->phy_suspend)
pldata->phy_suspend(pldata, USB_PHY_SUSPEND);
(otg_dev->core_if->usb_mode == USB_MODE_FORCE_HOST)) {
INIT_DELAYED_WORK(&dwc_otg_hcd->host_enable_work,
otg20_hcd_connect_detect);
- schedule_delayed_work(&dwc_otg_hcd->host_enable_work, HZ >> 2);
+ schedule_delayed_work(&dwc_otg_hcd->host_enable_work, 0);
}
return 0;
dwc_otg_hcd->connect_detect_timer.function = dwc_otg_hcd_connect_detect;
dwc_otg_hcd->connect_detect_timer.data = (unsigned long)(dwc_otg_hcd);
init_timer(&dwc_otg_hcd->connect_detect_timer);
- mod_timer(&dwc_otg_hcd->connect_detect_timer, jiffies + (HZ << 3));
+ mod_timer(&dwc_otg_hcd->connect_detect_timer, jiffies + (HZ << 1));
INIT_DELAYED_WORK(&dwc_otg_hcd->host_enable_work, dwc_otg_hcd_enable);
return 0;
if (unlikely(atomic_read(&urb->reject))) {
retval = -EPERM;
- printk
- ("%s urb %p submissions will fail, urb->reject %d, use_count %d\n",
- __func__, urb, atomic_read(&urb->reject),
- atomic_read(&urb->use_count));
+ DWC_DEBUGPL(DBG_HCD,
+ "%s urb %p submissions will fail,reject %d,count %d\n",
+ __func__, urb, atomic_read(&urb->reject),
+ atomic_read(&urb->use_count));
return retval;
-
}
if ((usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS)