fix a bug in usb host resume

This commit is contained in:
yangkai
2011-03-24 10:39:08 +08:00
parent 932d689d53
commit 757fc50d21
2 changed files with 5 additions and 5 deletions

View File

@@ -1231,8 +1231,8 @@ static int dwc_otg_driver_suspend(struct platform_device *_dev , pm_message_t st
rk28_usb_suspend(0);
del_timer(&otg_dev->pcd->check_vbus_timer);
DWC_PRINT("CRU_CLKGATE1_CON: 0x%08x\n",dwc_read_reg32((uint32_t *)(SCU_BASE_ADDR_VA+0x60)));
DWC_PRINT("USB_PHY_CON1: 0x%08x\n",dwc_read_reg32((uint32_t *)(USB_GRF_CON)));
//DWC_PRINT("CRU_CLKGATE1_CON: 0x%08x\n",dwc_read_reg32((uint32_t *)(SCU_BASE_ADDR_VA+0x60)));
//DWC_PRINT("USB_PHY_CON1: 0x%08x\n",dwc_read_reg32((uint32_t *)(USB_GRF_CON)));
return 0;
}
#else

View File

@@ -165,11 +165,9 @@ static int dwc_otg_hcd_resume(struct usb_hcd *hcd)
hprt0.b.prtconndet = 1;
dwc_write_reg32(core_if->host_if->hprt0, hprt0.d32);
hprt0.d32 = dwc_read_reg32(core_if->host_if->hprt0);
//hprt0.d32 = dwc_read_reg32(core_if->host_if->hprt0);
//DWC_PRINT("%s, HPRT0:0x%x\n",hcd->self.bus_name,hprt0.d32);
gintmsk.b.portintr = 1;
dwc_write_reg32(&core_if->core_global_regs->gintmsk, gintmsk.d32);
mdelay(10);
}
else
@@ -178,6 +176,8 @@ static int dwc_otg_hcd_resume(struct usb_hcd *hcd)
core_if->hcd_cb->suspend( core_if->hcd_cb->p, 1);
}
}
gintmsk.b.portintr = 1;
dwc_write_reg32(&core_if->core_global_regs->gintmsk, gintmsk.d32);
return 0;
}