From 0bd70b2f3ea5c3894001b025f9e61a1546ba0cd3 Mon Sep 17 00:00:00 2001 From: yangkai Date: Thu, 8 Dec 2011 21:19:08 +0800 Subject: [PATCH] reinit usb pcd ep4,ep6 when reset --- drivers/usb/dwc_otg/dwc_otg_pcd_intr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc_otg/dwc_otg_pcd_intr.c b/drivers/usb/dwc_otg/dwc_otg_pcd_intr.c index ac3f936c8d47..fbcf68471096 100755 --- a/drivers/usb/dwc_otg/dwc_otg_pcd_intr.c +++ b/drivers/usb/dwc_otg/dwc_otg_pcd_intr.c @@ -945,6 +945,8 @@ int32_t dwc_otg_pcd_handle_enum_done_intr(dwc_otg_pcd_t *_pcd) depctl.b.eptype = 2; depctl.b.usbactep = 1; dwc_write_reg32( &GET_CORE_IF(_pcd)->dev_if->out_ep_regs[2]->doepctl, depctl.d32 ); + dwc_write_reg32( &GET_CORE_IF(_pcd)->dev_if->out_ep_regs[4]->doepctl, depctl.d32 ); + dwc_write_reg32( &GET_CORE_IF(_pcd)->dev_if->out_ep_regs[6]->doepctl, depctl.d32 ); return 1; } @@ -1777,7 +1779,7 @@ static void complete_ep( dwc_otg_pcd_ep_t *_ep ) } request_done(_ep, req, 0); } else { - DWC_PRINT("\n++++++FIND NULL req,ep=%s++++++++++\n" , _ep->ep.name ); +// DWC_PRINT("\n++++++FIND NULL req,ep=%s++++++++++\n" , _ep->ep.name ); _ep->pcd->request_pending = 0; } _ep->dwc_ep.start_xfer_buff = 0; -- 2.34.1