diff options
author | Jonas Bonn <[email protected]> | 2019-02-20 13:20:00 +0100 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2019-05-03 09:13:49 +0300 |
commit | 70a7f8be85986a3c2ffc7274c41b89552dfe2ad0 (patch) | |
tree | 89b24f17ae5d68c4f7b3843b03f8475b1246cf0c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 66b61e27a98c8d5772dae543ca3581da0c2137a1 (diff) |
usb: gadget: atmel: support USB suspend
This patch adds support for USB suspend to the Atmel UDC.
When suspended, the UDC clock can be stopped, resulting in some power
savings. The "wake up" interrupt will fire irregardless of whether the
clock is running or not, allowing the UDC clock to be restarted when the
USB master wants to wake the device again.
The IRQ state of this device is somewhat fiddly. The "wake up" IRQ
seems to actually be a "bus activity" indicator; the IRQ is almost
continuously asserted so enabling this IRQ should only be done after a
suspend when the wake IRQ becomes relevant. Similarly, the "suspend"
IRQ detects "bus inactivity" and may therefore fire together with a
"wake" if the two types of activity coincide during the period between
two IRQ handler invocations; therefore, it's important to ignore the
"suspend" IRQ while waiting for a wake-up.
This has been tested on a SAMA5D2 board.
Signed-off-by: Jonas Bonn <[email protected]>
CC: Cristian Birsan <[email protected]>
CC: Felipe Balbi <[email protected]>
CC: Greg Kroah-Hartman <[email protected]>
CC: Nicolas Ferre <[email protected]>
CC: Alexandre Belloni <[email protected]>
CC: Ludovic Desroches <[email protected]>
CC: [email protected]
CC: [email protected]
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions