Skip to content

Commit

Permalink
[PATCH] Serial: Bugs are not capabilities
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Russell King committed Jun 23, 2005
1 parent 55d3b28 commit 67f7654
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/serial/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ static void serial8250_start_tx(struct uart_port *port, unsigned int tty_start)
up->ier |= UART_IER_THRI;
serial_out(up, UART_IER, up->ier);

if (up->capabilities & UART_BUG_TXEN) {
if (up->bugs & UART_BUG_TXEN) {
unsigned char lsr, iir;
lsr = serial_in(up, UART_LSR);
iir = serial_in(up, UART_IIR);
Expand Down Expand Up @@ -1564,13 +1564,13 @@ static int serial8250_startup(struct uart_port *port)
serial_outp(up, UART_IER, 0);

if (lsr & UART_LSR_TEMT && iir & UART_IIR_NO_INT) {
if (!(up->capabilities & UART_BUG_TXEN)) {
up->capabilities |= UART_BUG_TXEN;
if (!(up->bugs & UART_BUG_TXEN)) {
up->bugs |= UART_BUG_TXEN;
pr_debug("ttyS%d - enabling bad tx status workarounds\n",
port->line);
}
} else {
up->capabilities &= ~UART_BUG_TXEN;
up->bugs &= ~UART_BUG_TXEN;
}

spin_unlock_irqrestore(&up->port.lock, flags);
Expand Down

0 comments on commit 67f7654

Please sign in to comment.