diff options
author | Jonas Bonn <jonas@norrbonn.se> | 2019-02-20 13:20:01 +0100 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2019-05-03 08:13:49 +0200 |
commit | 8f6707bf2b2580810ebc96a535ed04e3aff6c9e4 (patch) | |
tree | 0e2c6a25b4d281517f518af08aa0056744833799 /drivers/usb/dwc3 | |
parent | usb: gadget: atmel: support USB suspend (diff) | |
download | linux-8f6707bf2b2580810ebc96a535ed04e3aff6c9e4.tar.xz linux-8f6707bf2b2580810ebc96a535ed04e3aff6c9e4.zip |
usb: gadget: atmel: tie wake lock to running clock
If the USB device is connected to a host, the CPU cannot be suspended or
else the USB device appears to be disconnected from the host's point of
view. Only after a "USB suspend" state has been entered (as set by the
host) or the host is disconnected can the system safely be suspended: in
both these states, the clock is stopped. As such, this patch associates
a "wake lock" with the running clock of the UDC to keep the system awake
as long as the host maintains the USB connection active.
Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
CC: Cristian Birsan <cristian.birsan@microchip.com>
CC: Felipe Balbi <balbi@kernel.org>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Nicolas Ferre <nicolas.ferre@microchip.com>
CC: Alexandre Belloni <alexandre.belloni@bootlin.com>
CC: Ludovic Desroches <ludovic.desroches@microchip.com>
CC: linux-arm-kernel@lists.infradead.org
CC: linux-usb@vger.kernel.org
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions