diff options
author | Frank Wang <frank.wang@rock-chips.com> | 2023-12-06 14:59:39 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-04 16:00:45 +0100 |
commit | 68c26fe58182f5af56bfa577d1cc0c949740baab (patch) | |
tree | 45fa54d64603289f2d56f4d2de10160852e416de /drivers/usb/cdns3/cdns3-ti.c | |
parent | 398aa9a7e77cf23c2a6f882ddd3dcd96f21771dc (diff) |
usb: dwc3: set pm runtime active before resume common
For device mode, if PM runtime autosuspend feature enabled, the
runtime power status of dwc3 may be suspended when run dwc3_resume(),
and dwc3 gadget would not be configured in dwc3_gadget_run_stop().
It would cause gadget connected failed if USB cable has been plugged
before PM resume. So move forward pm_runtime_set_active() to fix it.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Link: https://lore.kernel.org/r/20231206065939.16958-1-frank.wang@rock-chips.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions