Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213524
b: refs/heads/master
c: 4e4e660
h: refs/heads/master
v: v3
  • Loading branch information
Volker Ernst authored and Greg Kroah-Hartman committed Oct 22, 2010
1 parent f828f55 commit 7e57cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: e5586eccc9aaf485985480e4d3049acffaa3fa90
refs/heads/master: 4e4e66029af090c98cb10fafd13e8dd5039037a9
5 changes: 2 additions & 3 deletions trunk/drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,13 @@ static inline void imx_transmit_buffer(struct imx_port *sport)
{
struct circ_buf *xmit = &sport->port.state->xmit;

while (!(readl(sport->port.membase + UTS) & UTS_TXFULL)) {
while (!uart_circ_empty(xmit) &&
!(readl(sport->port.membase + UTS) & UTS_TXFULL)) {
/* send xmit->buf[xmit->tail]
* out the port here */
writel(xmit->buf[xmit->tail], sport->port.membase + URTX0);
xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
sport->port.icount.tx++;
if (uart_circ_empty(xmit))
break;
}

if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
Expand Down

0 comments on commit 7e57cb1

Please sign in to comment.