Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 381
b: refs/heads/master
c: 623f41e
h: refs/heads/master
i:
  379: 621b520
v: v3
  • Loading branch information
David S. Miller authored and David S. Miller committed Apr 22, 2005
1 parent afc63c4 commit 143cda2
Show file tree
Hide file tree
Showing 2 changed files with 10 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: b4bca26c0160f48b4eb04f21d31a229832732013
refs/heads/master: 623f41eb923d7f34888cbd9e4f50a7b1a79d0ae5
11 changes: 9 additions & 2 deletions trunk/drivers/serial/sunsu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,7 @@ static struct uart_driver sunsu_reg = {

static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel)
{
int quot, baud;
#ifdef CONFIG_SERIO
struct serio *serio;
#endif
Expand All @@ -1293,10 +1294,14 @@ static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel)
up->port.type = PORT_UNKNOWN;
up->port.uartclk = (SU_BASE_BAUD * 16);

if (up->su_type == SU_PORT_KBD)
if (up->su_type == SU_PORT_KBD) {
up->cflag = B1200 | CS8 | CLOCAL | CREAD;
else
baud = 1200;
} else {
up->cflag = B4800 | CS8 | CLOCAL | CREAD;
baud = 4800;
}
quot = up->port.uartclk / (16 * baud);

sunsu_autoconfig(up);
if (up->port.type == PORT_UNKNOWN)
Expand Down Expand Up @@ -1337,6 +1342,8 @@ static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel)
}
#endif

sunsu_change_speed(&up->port, up->cflag, 0, quot);

sunsu_startup(&up->port);
return 0;
}
Expand Down

0 comments on commit 143cda2

Please sign in to comment.