Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321771
b: refs/heads/master
c: 38f8eef
h: refs/heads/master
i:
  321769: 4cbe03b
  321767: 5d6087c
v: v3
  • Loading branch information
Jason Wessel authored and Greg Kroah-Hartman committed Aug 16, 2012
1 parent 428c802 commit 1f3799f
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 00592021010ad86d3b26bac7034034f6af145a2c
refs/heads/master: 38f8eefccf3a23c4058a570fa2938a4f553cf8e0
12 changes: 9 additions & 3 deletions trunk/drivers/tty/serial/pmac_zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -1348,10 +1348,16 @@ static int pmz_verify_port(struct uart_port *port, struct serial_struct *ser)
static int pmz_poll_get_char(struct uart_port *port)
{
struct uart_pmac_port *uap = (struct uart_pmac_port *)port;
int tries = 2;

while ((read_zsreg(uap, R0) & Rx_CH_AV) == 0)
udelay(5);
return read_zsdata(uap);
while (tries) {
if ((read_zsreg(uap, R0) & Rx_CH_AV) != 0)
return read_zsdata(uap);
if (tries--)
udelay(5);
}

return NO_POLL_CHAR;
}

static void pmz_poll_put_char(struct uart_port *port, unsigned char c)
Expand Down

0 comments on commit 1f3799f

Please sign in to comment.