> > > > Second, you may check if touch otgsc will hang or deadlock the system. > > > > If you can't touch otgsc when portsc.phcd = 0, you may need the > > > > flag CI_HDRC_DUAL_ROLE_NOT_OTG, afaik, few SoCs can't touch otgsc > > > > if it supports dual-role. > > > > > > I added some traces to the driver, and it doesn't actually appear to > > > be a register read/write that is breaking things. (Not directly > > > anyways). > > > The hang occurs after it enumerates the usb gadgets and hub. > > > Still trying to track down exactly where the hang occurs. > > > > > > > Try to see if it is related to runtime power management. > > That's it! > There doesn't appear to be a method to disable PM inside the chipidea driver. > Do you have a suggestion on how to do it, aside from the global method? > See drivers/usb/chipidea/ci_hdrc_imx.c for reference please. Peter