Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213510
b: refs/heads/master
c: 97d303b
h: refs/heads/master
v: v3
  • Loading branch information
David Daney authored and Greg Kroah-Hartman committed Oct 22, 2010
1 parent 240c6f3 commit 773a7e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: fd8b6cb4d820c4a717af1a0ac3ee387fd84571cf
refs/heads/master: 97d303b7657c1a45c158d002f829ff69196c493d
6 changes: 4 additions & 2 deletions trunk/drivers/serial/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -1867,15 +1867,17 @@ static void wait_for_xmitr(struct uart_8250_port *up, int bits)
unsigned int status, tmout = 10000;

/* Wait up to 10ms for the character(s) to be sent. */
do {
for (;;) {
status = serial_in(up, UART_LSR);

up->lsr_saved_flags |= status & LSR_SAVE_FLAGS;

if ((status & bits) == bits)
break;
if (--tmout == 0)
break;
udelay(1);
} while ((status & bits) != bits);
}

/* Wait up to 1s for flow control if necessary */
if (up->port.flags & UPF_CONS_FLOW) {
Expand Down

0 comments on commit 773a7e9

Please sign in to comment.