diff options
author | Alan Cox <alan@redhat.com> | 2008-07-22 06:18:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-22 16:03:28 -0400 |
commit | 9e98966c7bb94355689478bc84cc3e0c190f977e (patch) | |
tree | 928aebbfee524a48aa94a3d3def5249c8846a79a /drivers/char/mxser.c | |
parent | abbe629ae4011d2020047f41bea9f9e4b0ec4361 (diff) |
tty: rework break handling
Some hardware needs to do break handling itself and may have partial
support only. Make break_ctl return an error code. Add a tty driver flag
so you can indicate driver hardware side break support.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/mxser.c')
-rw-r--r-- | drivers/char/mxser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index 1fb25571bf85..f04c3c58a05a 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c | |||
@@ -2183,7 +2183,7 @@ static void mxser_hangup(struct tty_struct *tty) | |||
2183 | /* | 2183 | /* |
2184 | * mxser_rs_break() --- routine which turns the break handling on or off | 2184 | * mxser_rs_break() --- routine which turns the break handling on or off |
2185 | */ | 2185 | */ |
2186 | static void mxser_rs_break(struct tty_struct *tty, int break_state) | 2186 | static int mxser_rs_break(struct tty_struct *tty, int break_state) |
2187 | { | 2187 | { |
2188 | struct mxser_port *info = tty->driver_data; | 2188 | struct mxser_port *info = tty->driver_data; |
2189 | unsigned long flags; | 2189 | unsigned long flags; |
@@ -2196,6 +2196,7 @@ static void mxser_rs_break(struct tty_struct *tty, int break_state) | |||
2196 | outb(inb(info->ioaddr + UART_LCR) & ~UART_LCR_SBC, | 2196 | outb(inb(info->ioaddr + UART_LCR) & ~UART_LCR_SBC, |
2197 | info->ioaddr + UART_LCR); | 2197 | info->ioaddr + UART_LCR); |
2198 | spin_unlock_irqrestore(&info->slock, flags); | 2198 | spin_unlock_irqrestore(&info->slock, flags); |
2199 | return 0; | ||
2199 | } | 2200 | } |
2200 | 2201 | ||
2201 | static void mxser_receive_chars(struct mxser_port *port, int *status) | 2202 | static void mxser_receive_chars(struct mxser_port *port, int *status) |