Skip to content

Commit

Permalink
Make sure we wait for the reset to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Hollingworth committed Nov 4, 2012
1 parent 807223a commit 42a864b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ int32_t dwc_otg_hcd_handle_intr(dwc_otg_hcd_t * dwc_otg_hcd)
if (mphi_int_count >= 60)
{
DWC_WRITE_REG32(c_mphi_regs.ctrl, ((1<<31) + (1<<16)));
while(!(DWC_READ_REG32(c_mphi_regs.ctrl) & (1 << 17)))
;
DWC_WRITE_REG32(c_mphi_regs.ctrl, (1<<31));
mphi_int_count = 0;
}
Expand Down

0 comments on commit 42a864b

Please sign in to comment.