diff options
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index fc527de73465..fc423583eede 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -2120,6 +2120,7 @@ static void ftdi_process_read(struct work_struct *work) | |||
2120 | if (data[packet_offset+1] & FTDI_RS_BI) { | 2120 | if (data[packet_offset+1] & FTDI_RS_BI) { |
2121 | error_flag = TTY_BREAK; | 2121 | error_flag = TTY_BREAK; |
2122 | dbg("BREAK received"); | 2122 | dbg("BREAK received"); |
2123 | usb_serial_handle_break(port); | ||
2123 | } | 2124 | } |
2124 | if (data[packet_offset+1] & FTDI_RS_PE) { | 2125 | if (data[packet_offset+1] & FTDI_RS_PE) { |
2125 | error_flag = TTY_PARITY; | 2126 | error_flag = TTY_PARITY; |
@@ -2134,8 +2135,11 @@ static void ftdi_process_read(struct work_struct *work) | |||
2134 | /* Note that the error flag is duplicated for | 2135 | /* Note that the error flag is duplicated for |
2135 | every character received since we don't know | 2136 | every character received since we don't know |
2136 | which character it applied to */ | 2137 | which character it applied to */ |
2137 | tty_insert_flip_char(tty, | 2138 | if (!usb_serial_handle_sysrq_char(port, |
2138 | data[packet_offset + i], error_flag); | 2139 | data[packet_offset + i])) |
2140 | tty_insert_flip_char(tty, | ||
2141 | data[packet_offset + i], | ||
2142 | error_flag); | ||
2139 | } | 2143 | } |
2140 | need_flip = 1; | 2144 | need_flip = 1; |
2141 | } | 2145 | } |