USB: ftdi_sio: clean up line-status handling
commit166ceb69075066cba196434482370f1e0318bc3e
authorJohan Hovold <jhovold@gmail.com>
Sat, 8 May 2010 13:19:24 +0000 (8 15:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:44 +0000 (20 13:21 -0700)
treed401d8c4d3ee4df6d7ec42a94ae5f5bd5da3a12e
parentd45cc8df7f59eb4db28408076ce979cd5e18f2b7
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