diff options
author | Patrick Gefre <pfg@sgi.com> | 2005-05-01 08:59:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 08:59:21 -0700 |
commit | 149733d4e274ce1add3399cabdb243116ebfdf79 (patch) | |
tree | 2e34d1ea62154b4e37f7b69a35c66edbfe36257f /drivers/serial/ioc4_serial.c | |
parent | 10e92060295ded7b8feac1ee57bb2135ea9ac207 (diff) | |
download | op-kernel-dev-149733d4e274ce1add3399cabdb243116ebfdf79.zip op-kernel-dev-149733d4e274ce1add3399cabdb243116ebfdf79.tar.gz |
[PATCH] Altix ioc4 serial - set hfc from ioctl
Allow hardware flow control to be set from an ioctl.
Signed-off-by: Patrick Gefre <pfg@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/serial/ioc4_serial.c')
-rw-r--r-- | drivers/serial/ioc4_serial.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/serial/ioc4_serial.c b/drivers/serial/ioc4_serial.c index d054f12..f94d2e7 100644 --- a/drivers/serial/ioc4_serial.c +++ b/drivers/serial/ioc4_serial.c @@ -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; @@ -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; } |