aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorHui Wang <[email protected]>2011-08-24 17:41:47 +0800
committerGreg Kroah-Hartman <[email protected]>2011-08-24 15:27:59 -0700
commit019dc9ea8d528eb3640bbba604e1e5a2f6994b1f (patch)
tree7acf8e0361af95ea8ab490a6cd2fff4f6a4ac5b9 /tools/perf/scripts
parent9a234349de01de3437784c0ef03d95353f055fae (diff)
serial/imx: support to handle break character
The imx UART hardware controller can identify BREAK character and the imx_set_termios() can accept BRKINT set by users, but current existing imx_rxint() can't pass BREAK character and TTY_BREAK to the tty layer as other serial drivers do (8250.c omap_serial.c). Here add code to handle BREAK character and pass it to tty layer. To detect error occurrence, i use URXD_ERR to replace (URXD_OVRRUN | URXD_FRMERR | ...) because any kind of error occurs, URXD_ERR will always be set to 1. I put the URXD_BRK to the first place to check since when BREAK error occurs, not only URXD_BRK is set to 1, but also URXD_PRERR and URXD_FRMERR are all set to 1. This arrangement can filter out fake parity and frame errors when BREAK error occurs. Signed-off-by: Hui Wang <[email protected]> Acked-by: Sascha Hauer <[email protected]> Acked-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions