Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3008
b: refs/heads/master
c: 67f7654
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jun 23, 2005
1 parent 4a31e59 commit 12f4bd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 55d3b282b90620e02e825304a9433732a84c58a5
refs/heads/master: 67f7654ea1f11fac1cf4a33bf9a5d9079d122e70
8 changes: 4 additions & 4 deletions trunk/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 12f4bd3

Please sign in to comment.