]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ftdi_sio: clean up line-status handling
authorJohan Hovold <jhovold@gmail.com>
Sat, 8 May 2010 13:19:24 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:44 +0000 (13:21 -0700)
commit332b5a48926164e64178a4c68f833cf6f997c905
treed401d8c4d3ee4df6d7ec42a94ae5f5bd5da3a12e
parent9dcc3de9749b213d3208cf44d18ed2b8f6afce7c
USB: ftdi_sio: clean up line-status handling

Reverse priority of errors reported to ldisc so that it matches that of
other serial drivers (break takes precedence over parity, which takes
precedence over framing errors).

Also make sure overrun errors are handled as in other drivers, that is,
an overrun error is always reported and is not associated with any
received character (instead a NULL character with the TTY_OVERRUN flag
set is inserted).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c