Skip to content

Commit

Permalink
USB: serial: ftd_sio: implement sysrq handling on break
Browse files Browse the repository at this point in the history
Change driver to make use of the new functions in
include/linux/usb/serial.h so as to allow the driver to handle the
sysrq

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
jwessel authored and gregkh committed Jun 16, 2009
1 parent 98fcb5f commit 72fda3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/usb/serial/ftdi_sio.c
Expand Up @@ -2120,6 +2120,7 @@ static void ftdi_process_read(struct work_struct *work)
if (data[packet_offset+1] & FTDI_RS_BI) {
error_flag = TTY_BREAK;
dbg("BREAK received");
usb_serial_handle_break(port);
}
if (data[packet_offset+1] & FTDI_RS_PE) {
error_flag = TTY_PARITY;
Expand All @@ -2134,8 +2135,11 @@ static void ftdi_process_read(struct work_struct *work)
/* Note that the error flag is duplicated for
every character received since we don't know
which character it applied to */
tty_insert_flip_char(tty,
data[packet_offset + i], error_flag);
if (!usb_serial_handle_sysrq_char(port,
data[packet_offset + i]))
tty_insert_flip_char(tty,
data[packet_offset + i],
error_flag);
}
need_flip = 1;
}
Expand Down

0 comments on commit 72fda3c

Please sign in to comment.