Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 766
b: refs/heads/master
c: 149733d
h: refs/heads/master
v: v3
  • Loading branch information
Patrick Gefre authored and Linus Torvalds committed May 1, 2005
1 parent e3b766c commit b100bcd
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 10e92060295ded7b8feac1ee57bb2135ea9ac207
refs/heads/master: 149733d4e274ce1add3399cabdb243116ebfdf79
11 changes: 4 additions & 7 deletions trunk/drivers/serial/ioc4_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1765,8 +1765,11 @@ ioc4_change_speed(struct uart_port *the_port,
the_port->ignore_status_mask &= ~N_DATA_READY;
}

if (cflag & CRTSCTS)
if (cflag & CRTSCTS) {
info->flags |= ASYNC_CTS_FLOW;
port->ip_sscr |= IOC4_SSCR_HFC_EN;
writel(port->ip_sscr, &port->ip_serial_regs->sscr);
}
else
info->flags &= ~ASYNC_CTS_FLOW;

Expand Down Expand Up @@ -1825,12 +1828,6 @@ static inline int ic4_startup_local(struct uart_port *the_port)
/* set the speed of the serial port */
ioc4_change_speed(the_port, info->tty->termios, (struct termios *)0);

/* enable hardware flow control - after ioc4_change_speed because
* ASYNC_CTS_FLOW is set there */
if (info->flags & ASYNC_CTS_FLOW) {
port->ip_sscr |= IOC4_SSCR_HFC_EN;
writel(port->ip_sscr, &port->ip_serial_regs->sscr);
}
info->flags |= UIF_INITIALIZED;
return 0;
}
Expand Down

0 comments on commit b100bcd

Please sign in to comment.