diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-11-06 10:46:18 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-11-06 10:46:18 -0500 |
commit | 330f28f691e9b349e34adcaf82b273cf061bb491 (patch) | |
tree | fca3bfe41eff25ef19f576cef1979c68f6521af5 /drivers/usb/serial/pl2303.c | |
parent | fe3e78e073d25308756f38019956061153267769 (diff) | |
parent | 6fc786d5034ed7ce2d43c459211137de6d99dd28 (diff) |
Merge branch 'for-2.6.32' into for-2.6.33
Diffstat (limited to 'drivers/usb/serial/pl2303.c')
-rw-r--r-- | drivers/usb/serial/pl2303.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 1128e01525b1..9ec1a49e2362 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -1046,13 +1046,15 @@ static void pl2303_push_data(struct tty_struct *tty, | |||
1046 | /* overrun is special, not associated with a char */ | 1046 | /* overrun is special, not associated with a char */ |
1047 | if (line_status & UART_OVERRUN_ERROR) | 1047 | if (line_status & UART_OVERRUN_ERROR) |
1048 | tty_insert_flip_char(tty, 0, TTY_OVERRUN); | 1048 | tty_insert_flip_char(tty, 0, TTY_OVERRUN); |
1049 | if (port->console && port->sysrq) { | 1049 | |
1050 | if (tty_flag == TTY_NORMAL && !(port->console && port->sysrq)) | ||
1051 | tty_insert_flip_string(tty, data, urb->actual_length); | ||
1052 | else { | ||
1050 | int i; | 1053 | int i; |
1051 | for (i = 0; i < urb->actual_length; ++i) | 1054 | for (i = 0; i < urb->actual_length; ++i) |
1052 | if (!usb_serial_handle_sysrq_char(tty, port, data[i])) | 1055 | if (!usb_serial_handle_sysrq_char(tty, port, data[i])) |
1053 | tty_insert_flip_char(tty, data[i], tty_flag); | 1056 | tty_insert_flip_char(tty, data[i], tty_flag); |
1054 | } else | 1057 | } |
1055 | tty_insert_flip_string(tty, data, urb->actual_length); | ||
1056 | tty_flip_buffer_push(tty); | 1058 | tty_flip_buffer_push(tty); |
1057 | } | 1059 | } |
1058 | 1060 | ||