Hello.
Bill Pemberton wrote:
flag was never set in ssu100_process_packet. Add logic to set it
before calling tty_insert_flip_*
Signed-off-by: Bill Pemberton <wfp5p@xxxxxxxxxxxx>
---
drivers/usb/serial/ssu100.c | 38 +++++++++++++++++++++++++++++---------
1 files changed, 29 insertions(+), 9 deletions(-)
diff --git a/drivers/usb/serial/ssu100.c b/drivers/usb/serial/ssu100.c
index 9c87230..164c300 100644
--- a/drivers/usb/serial/ssu100.c
+++ b/drivers/usb/serial/ssu100.c
@@ -603,7 +603,8 @@ static void ssu100_update_msr(struct usb_serial_port *port, u8 msr)
}
}
-static void ssu100_update_lsr(struct usb_serial_port *port, u8 lsr)
+static void ssu100_update_lsr(struct usb_serial_port *port, u8 lsr,
+ char *tty_flag)
{
struct ssu100_port_private *priv = usb_get_serial_port_data(port);
unsigned long flags;
@@ -612,16 +613,32 @@ static void ssu100_update_lsr(struct usb_serial_port *port, u8 lsr)
priv->shadowLSR = lsr;
spin_unlock_irqrestore(&priv->status_lock, flags);
+ *tty_flag = TTY_NORMAL;
if (lsr & UART_LSR_BRK_ERROR_BITS) {
- if (lsr & UART_LSR_BI)
+ /* we always want to update icount, but we only want to
Indent with tabs, please.
+ * update tty_flag for one case */
Preferred style of multiline comments, according to CodingStyle, is this:
/*
* bla
* bla
*/
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html