aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorRoger Quadros <[email protected]>2023-05-03 14:00:48 +0300
committerGreg Kroah-Hartman <[email protected]>2023-05-13 17:30:35 +0900
commitc8540870af4ce6ddeb27a7bb5498b75fb29b643c (patch)
tree19834b97db2d2dc7c7e2a9a3bb2c8c3b20528c16 /lib/mpi/mpi-mod.c
parent94d25e9128988c6a1fc9070f6e98215a95795bd8 (diff)
usb: dwc3: gadget: Improve dwc3_gadget_suspend() and dwc3_gadget_resume()
Prevent -ETIMEDOUT error on .suspend(). e.g. If gadget driver is loaded and we are connected to a USB host, all transfers must be stopped before stopping the controller else we will not get a clean stop i.e. dwc3_gadget_run_stop() will take several seconds to complete and will return -ETIMEDOUT. Handle error cases properly in dwc3_gadget_suspend(). Simplify dwc3_gadget_resume() by using the introduced helper function. Fixes: 9f8a67b65a49 ("usb: dwc3: gadget: fix gadget suspend/resume") Cc: [email protected] Suggested-by: Thinh Nguyen <[email protected]> Signed-off-by: Roger Quadros <[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-mod.c')
0 files changed, 0 insertions, 0 deletions