Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72fda3ca authored by Jason Wessel's avatar Jason Wessel Committed by Greg Kroah-Hartman
Browse files

USB: serial: ftd_sio: implement sysrq handling on break



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: default avatarJason Wessel <jason.wessel@windriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 98fcb5f7
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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;
@@ -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 */
				if (!usb_serial_handle_sysrq_char(port,
						data[packet_offset + i]))
					tty_insert_flip_char(tty,
					data[packet_offset + i], error_flag);
						data[packet_offset + i],
						error_flag);
			}
			need_flip = 1;
		}