[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <24c9f271-ed74-fffa-a49f-6e83da857593@kernel.org>
Date: Wed, 26 Apr 2023 19:17:22 +0300
From: Roger Quadros <rogerq@...nel.org>
To: Thinh Nguyen <Thinh.Nguyen@...opsys.com>
Cc: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: dwc3 gadget: controller stop times out on system sleep
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
Powered by blists - more mailing lists