mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
fix a bug in usb host resume
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user