linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] usb: dwc3: Support wake-up from USB suspend.
@ 2023-03-20  9:34 Roger Quadros
  2023-03-20  9:34 ` [RFC PATCH 1/2] dt-bindings: usb: snps,dwc3: Add 'snps,gadget-keep-connect-sys-sleep' Roger Quadros
  2023-03-20  9:34 ` [RFC PATCH 2/2] usb: dwc3: Support 'snps,gadget-keep-connect-sys-sleep' feature Roger Quadros
  0 siblings, 2 replies; 24+ messages in thread
From: Roger Quadros @ 2023-03-20  9:34 UTC (permalink / raw)
  To: Thinh.Nguyen, stern
  Cc: gregkh, vigneshr, srk, r-gunasekaran, linux-usb, linux-kernel,
	Roger Quadros

Hi,

The current USB gadget driver behaviour is to stop the controller
and disconnect from the bus during System sleep.

This series introduces a new DT property that will change this
behaviour and keep the controller active and connected
to the bus during System sleep. This is useful for applications
that want to enter a low power state when USB is suspended but
remain connected so they can resume activity on USB resume.

This feature introduces a new constraint if Gadget driver is connected
to USB host: i.e.  the gadget must be in USB suspend state to allow
a System sleep as we cannot process any USB transactions
when in System sleep.

The system hardware is responsible to detect the end of USB suspend
and wake up the system so we can begin processing the USB transactions
as soon as possible.

Some prior discussion about System suspend vs USB suspend can be found
at [1]

[1] - https://marc.info/?l=linux-usb&m=167645398109860&w=2

cheers,
-roger

Roger Quadros (2):
  dt-bindings: usb: snps,dwc3: Add 'snps,gadget-keep-connect-sys-sleep'
  usb: dwc3: Support 'snps,gadget-keep-connect-sys-sleep' feature

 .../devicetree/bindings/usb/snps,dwc3.yaml    |  5 ++++
 drivers/usb/dwc3/core.c                       | 25 ++++++++++++++-----
 drivers/usb/dwc3/core.h                       |  2 ++
 drivers/usb/dwc3/gadget.c                     | 25 +++++++++++++++++--
 4 files changed, 49 insertions(+), 8 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-04-13 11:32 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20  9:34 [RFC PATCH 0/2] usb: dwc3: Support wake-up from USB suspend Roger Quadros
2023-03-20  9:34 ` [RFC PATCH 1/2] dt-bindings: usb: snps,dwc3: Add 'snps,gadget-keep-connect-sys-sleep' Roger Quadros
2023-03-20 13:11   ` Rob Herring
2023-03-20 13:22   ` Rob Herring
2023-03-21  9:44     ` Roger Quadros
2023-03-20  9:34 ` [RFC PATCH 2/2] usb: dwc3: Support 'snps,gadget-keep-connect-sys-sleep' feature Roger Quadros
2023-03-20 18:52   ` Thinh Nguyen
2023-03-21 10:20     ` Roger Quadros
2023-03-21 18:43       ` Thinh Nguyen
2023-03-21 19:05         ` Thinh Nguyen
2023-03-22  8:11           ` Roger Quadros
2023-03-22 17:31             ` Thinh Nguyen
2023-03-23  2:17               ` Thinh Nguyen
2023-03-23  9:29                 ` Roger Quadros
2023-03-23 20:51                   ` Thinh Nguyen
2023-03-31 11:05                     ` Roger Quadros
2023-04-03 23:37                       ` Thinh Nguyen
2023-04-04  8:01                         ` Roger Quadros
2023-04-04 21:53                           ` Thinh Nguyen
2023-04-05  8:56                             ` Roger Quadros
2023-04-06  1:38                               ` Thinh Nguyen
2023-04-12  7:46                                 ` Roger Quadros
2023-04-12 20:59                                   ` Thinh Nguyen
2023-04-13 11:31                                     ` Roger Quadros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).