Messages in this thread Patch in this message | | | From | Jason Wessel <> | Subject | [PATCH 4/4] ftd_sio usb: implement sysrq handling on break | Date | Mon, 11 May 2009 15:24:10 -0500 |
| |
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 when the .config has CONFIG_USB_SERIAL_SYSRQ=y.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com> --- 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 3a1b84d..a93b76a 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -1991,6 +1991,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; @@ -2005,8 +2006,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; } -- 1.6.3.rc0.1.gf800
| |