Linux USB
 help / color / mirror / Atom feed
* dwc3 gadget: controller stop times out on system sleep
@ 2023-04-26 16:17 Roger Quadros
  2023-04-26 20:01 ` Thinh Nguyen
  0 siblings, 1 reply; 6+ messages in thread
From: Roger Quadros @ 2023-04-26 16:17 UTC (permalink / raw)
  To: Thinh Nguyen
  Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org

Hi Thinh,

On Linux kernel v6.3
Test procedure: 

- modprobe g_zero
- Connect to PC host
- systemctl suspend

A large delay of 3 seconds is observed. The delay comes from dwc3_gadget_suspend()->dwc3_gadget_run_stop() waiting for DWC3_DSTS_DEVCTRLHLT to be set.
It returns -ETIMEDOUT.

Are we missing something to do a clean stop during suspend?

FYI. Unloading g_zero does not show this delay on stop.

cheers,
-roger

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-28 18:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-26 16:17 dwc3 gadget: controller stop times out on system sleep Roger Quadros
2023-04-26 20:01 ` Thinh Nguyen
2023-04-27 16:26   ` Roger Quadros
2023-04-27 22:13     ` Thinh Nguyen
2023-04-28 12:04       ` Roger Quadros
2023-04-28 18:33         ` Thinh Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox