usb: dwc2: suspend/resume support for DWC2_POWER_DOWN_PARAM_NONE case
Hi,
After reading current dwc2 code, I got an impression that resume from suspend to ram isn't supported for DWC2_POWER_DOWN_PARAM_NONE case, right? In fact we do see usb device can't resume properly with DWC2_POWER_DOWN_PARAM_NONE case.
If the impression is true, what's the proper technical direction? Add dwc2_host_enter_suspend() as dwc2_host_enter_hibernation() anddwc2_host_exit_suspend() as dwc2_host_exit_hibernation()?
Thanks in advance,
Jisheng
Hi Jisheng,
Quoted 4 lines · Jisheng Zhang
Hi,
After reading current dwc2 code, I got an impression that resume from suspend to ram isn't supported for
DWC2_POWER_DOWN_PARAM_NONEcase, right? In fact
'ram' Do you mean on suspend save registers in RAM?
If yes, then in case when power_down is _NONE then no any register saving/restoring to/from RAM should be performing.
Quoted 2 lines
we do see usb device can't resume properly with
DWC2_POWER_DOWN_PARAM_NONEcase.
If you see any issue on resume in mentioned case then more probably is some another issue which can debugged.
Quoted 8 lines
If the impression is true, what's the proper technical direction? Add
dwc2_host_enter_suspend()asdwc2_host_enter_hibernation()anddwc2_host_exit_suspend()asdwc2_host_exit_hibernation()?Thanks in advance,
Jisheng
Thanks,
Minas