Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56539
b: refs/heads/master
c: b5b82df
h: refs/heads/master
i:
  56537: 3ebbf96
  56535: 8e07c4b
v: v3
  • Loading branch information
David Woodhouse authored and Linus Torvalds committed May 17, 2007
1 parent 6bd7570 commit ece03db
Show file tree
Hide file tree
Showing 2 changed files with 19 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: c97a9e10eaee328e6eea9f76acf7bacd7d48ef56
refs/heads/master: b5b82df6f461e66af821bff5b51f336af92d96b6
21 changes: 18 additions & 3 deletions trunk/drivers/serial/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ static void autoconfig_16550a(struct uart_8250_port *up)
quot = serial_dl_read(up);
quot <<= 3;

status1 = serial_in(up, 0x04); /* EXCR1 */
status1 = serial_in(up, 0x04); /* EXCR2 */
status1 &= ~0xB0; /* Disable LOCK, mask out PRESL[01] */
status1 |= 0x10; /* 1.625 divisor for baud_base --> 921600 */
serial_outp(up, 0x04, status1);
Expand Down Expand Up @@ -2617,7 +2617,22 @@ void serial8250_suspend_port(int line)
*/
void serial8250_resume_port(int line)
{
uart_resume_port(&serial8250_reg, &serial8250_ports[line].port);
struct uart_8250_port *up = &serial8250_ports[line];

if (up->capabilities & UART_NATSEMI) {
unsigned char tmp;

/* Ensure it's still in high speed mode */
serial_outp(up, UART_LCR, 0xE0);

tmp = serial_in(up, 0x04); /* EXCR2 */
tmp &= ~0xB0; /* Disable LOCK, mask out PRESL[01] */
tmp |= 0x10; /* 1.625 divisor for baud_base --> 921600 */
serial_outp(up, 0x04, tmp);

serial_outp(up, UART_LCR, 0);
}
uart_resume_port(&serial8250_reg, &up->port);
}

/*
Expand Down Expand Up @@ -2694,7 +2709,7 @@ static int serial8250_resume(struct platform_device *dev)
struct uart_8250_port *up = &serial8250_ports[i];

if (up->port.type != PORT_UNKNOWN && up->port.dev == &dev->dev)
uart_resume_port(&serial8250_reg, &up->port);
serial8250_resume_port(i);
}

return 0;
Expand Down

0 comments on commit ece03db

Please sign in to comment.