aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorRomain Izard <[email protected]>2017-09-28 11:46:27 +0200
committerGreg Kroah-Hartman <[email protected]>2017-10-04 10:14:16 +0200
commitea04f82a0c7f2739071cc9ac4a0ca57b3bddef7b (patch)
treef60b3c5e20e307e9912bf493fc4005117af5319e /tools/perf/scripts/python/call-graph-from-sql.py
parentfa2abb03637a55288b22082d3d679db4fe74112a (diff)
tty/serial: atmel: Prevent a warning on suspend
The atmel serial port driver reported the following warning on suspend: atmel_usart f8020000.serial: ttyS1: Unable to drain transmitter As the ATMEL_US_TXEMPTY status bit in ATMEL_US_CSR is always cleared when the transmitter is disabled, we need to know the transmitter's state to return the real fifo state. And as ATMEL_US_CR is write-only, it is necessary to save the state of the transmitter in a local variable, and update the variable when TXEN and TXDIS is written in ATMEL_US_CR. After those changes, atmel_tx_empty can return "empty" on suspend, the warning in uart_suspend_port disappears, and suspending is 20ms shorter for each enabled Atmel serial port. Signed-off-by: Romain Izard <[email protected]> Tested-by: Nicolas Ferre <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Acked-by: Richard Genoud <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions