diff options
author | Udipto Goswami <[email protected]> | 2023-05-09 20:18:36 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-05-13 17:56:22 +0900 |
commit | 614ce6a2ea50068b45339257891e51e639ac9001 (patch) | |
tree | a619112241a554311ed217e1c89a5b04c4df72c0 /lib/mpi/mpi-mul.c | |
parent | dddb342b5b9e482bb213aecc08cbdb201ea4f8da (diff) |
usb: dwc3: debugfs: Resume dwc3 before accessing registers
When the dwc3 device is runtime suspended, various required clocks are in
disabled state and it is not guaranteed that access to any registers would
work. Depending on the SoC glue, a register read could be as benign as
returning 0 or be fatal enough to hang the system.
In order to prevent such scenarios of fatal errors, make sure to resume
dwc3 then allow the function to proceed.
Fixes: 72246da40f37 ("usb: Introduce DesignWare USB3 DRD Driver")
Cc: [email protected] #3.2: 30332eeefec8: debugfs: regset32: Add Runtime PM support
Signed-off-by: Udipto Goswami <[email protected]>
Reviewed-by: Johan Hovold <[email protected]>
Tested-by: Johan Hovold <[email protected]>
Acked-by: Thinh Nguyen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions