Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168980
b: refs/heads/master
c: be24656
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Nov 24, 2009
1 parent 145557e commit d361b12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 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: 1917d17b903955b8b2903626a2e01d071a5d0ec9
refs/heads/master: be24656a5e2d68bfd0744f0742c4aceef2cf44b5
17 changes: 10 additions & 7 deletions trunk/drivers/serial/sunsu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1329,11 +1329,9 @@ static void sunsu_console_write(struct console *co, const char *s,
*/
static int __init sunsu_console_setup(struct console *co, char *options)
{
static struct ktermios dummy;
struct ktermios termios;
struct uart_port *port;
int baud = 9600;
int bits = 8;
int parity = 'n';
int flow = 'n';

printk("Console: ttyS%d (SU)\n",
(sunsu_reg.minor - 64) + co->index);
Expand All @@ -1352,10 +1350,15 @@ static int __init sunsu_console_setup(struct console *co, char *options)
*/
spin_lock_init(&port->lock);

if (options)
uart_parse_options(options, &baud, &parity, &bits, &flow);
/* Get firmware console settings. */
sunserial_console_termios(co, to_of_device(port->dev)->node);

return uart_set_options(port, co, baud, parity, bits, flow);
memset(&termios, 0, sizeof(struct ktermios));
termios.c_cflag = co->cflag;
port->mctrl |= TIOCM_DTR;
port->ops->set_termios(port, &termios, &dummy);

return 0;
}

static struct console sunsu_console = {
Expand Down

0 comments on commit d361b12

Please sign in to comment.