DWC_PRINT("%s, usb device mode\n", __func__);
return 0;
}
+ if(!dwc_otg_hcd->host_enabled)
+ return 0;
hprt0.d32 = dwc_read_reg32(core_if->host_if->hprt0);
#ifdef CONFIG_USB_SUSPEND
- if((!dwc_otg_hcd->host_enabled)||(!hprt0.b.prtena))
+ if((!hprt0.b.prtena))
return 0;
#endif
DWC_PRINT("%s suspend, HPRT0:0x%x\n",hcd->self.bus_name,hprt0.d32);
DWC_PRINT("%s, usb device mode\n", __func__);
return 0;
}
-#ifdef CONFIG_USB_SUSPEND
+//#ifdef CONFIG_USB_SUSPEND
if(!dwc_otg_hcd->host_enabled)
return 0;
-#endif
+//#endif
#ifndef CONFIG_DWC_REMOTE_WAKEUP
if (pldata->clock_enable)
pldata->clock_enable( pldata, 1);
_core_if->hcd_cb->disconnect( _core_if->hcd_cb->p );
}
#endif
- if (_core_if->hcd_cb && _core_if->hcd_cb->stop) {
- _core_if->hcd_cb->stop( _core_if->hcd_cb->p );
- }
+ dwc_otg_disable_host_interrupts( _core_if );
+ //if (_core_if->hcd_cb && _core_if->hcd_cb->stop) {
+ // _core_if->hcd_cb->stop( _core_if->hcd_cb->p );
+ // }
if(pldata->phy_suspend)
pldata->phy_suspend( pldata, USB_PHY_SUSPEND);
udelay(3);