diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/pcmcia/synclink_cs.c | 5 | ||||
-rw-r--r-- | drivers/tty/amiserial.c | 6 | ||||
-rw-r--r-- | drivers/tty/cyclades.c | 10 | ||||
-rw-r--r-- | drivers/tty/isicom.c | 6 | ||||
-rw-r--r-- | drivers/tty/mxser.c | 4 | ||||
-rw-r--r-- | drivers/tty/synclink.c | 7 | ||||
-rw-r--r-- | drivers/tty/synclink_gt.c | 5 | ||||
-rw-r--r-- | drivers/tty/synclinkmp.c | 5 |
8 files changed, 14 insertions, 34 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index bcae5bb15751..bdf41ac613dc 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c | |||
@@ -1466,10 +1466,7 @@ static void mgslpc_change_params(MGSLPC_INFO *info, struct tty_struct *tty) | |||
1466 | } | 1466 | } |
1467 | info->timeout += HZ/50; /* Add .02 seconds of slop */ | 1467 | info->timeout += HZ/50; /* Add .02 seconds of slop */ |
1468 | 1468 | ||
1469 | if (cflag & CRTSCTS) | 1469 | tty_port_set_cts_flow(&info->port, cflag & CRTSCTS); |
1470 | info->port.flags |= ASYNC_CTS_FLOW; | ||
1471 | else | ||
1472 | info->port.flags &= ~ASYNC_CTS_FLOW; | ||
1473 | 1470 | ||
1474 | if (cflag & CLOCAL) | 1471 | if (cflag & CLOCAL) |
1475 | info->port.flags &= ~ASYNC_CHECK_CD; | 1472 | info->port.flags &= ~ASYNC_CHECK_CD; |
diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c index e68208eac322..92717b088959 100644 --- a/drivers/tty/amiserial.c +++ b/drivers/tty/amiserial.c | |||
@@ -727,11 +727,9 @@ static void change_speed(struct tty_struct *tty, struct serial_state *info, | |||
727 | info->IER &= ~UART_IER_MSI; | 727 | info->IER &= ~UART_IER_MSI; |
728 | if (port->flags & ASYNC_HARDPPS_CD) | 728 | if (port->flags & ASYNC_HARDPPS_CD) |
729 | info->IER |= UART_IER_MSI; | 729 | info->IER |= UART_IER_MSI; |
730 | if (cflag & CRTSCTS) { | 730 | tty_port_set_cts_flow(port, cflag & CRTSCTS); |
731 | port->flags |= ASYNC_CTS_FLOW; | 731 | if (cflag & CRTSCTS) |
732 | info->IER |= UART_IER_MSI; | 732 | info->IER |= UART_IER_MSI; |
733 | } else | ||
734 | port->flags &= ~ASYNC_CTS_FLOW; | ||
735 | if (cflag & CLOCAL) | 733 | if (cflag & CLOCAL) |
736 | port->flags &= ~ASYNC_CHECK_CD; | 734 | port->flags &= ~ASYNC_CHECK_CD; |
737 | else { | 735 | else { |
diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c index d67e542bab1c..1a12776ba24c 100644 --- a/drivers/tty/cyclades.c +++ b/drivers/tty/cyclades.c | |||
@@ -2083,13 +2083,11 @@ static void cy_set_line_char(struct cyclades_port *info, struct tty_struct *tty) | |||
2083 | info->cor1 |= CyPARITY_NONE; | 2083 | info->cor1 |= CyPARITY_NONE; |
2084 | 2084 | ||
2085 | /* CTS flow control flag */ | 2085 | /* CTS flow control flag */ |
2086 | if (cflag & CRTSCTS) { | 2086 | tty_port_set_cts_flow(&info->port, cflag & CRTSCTS); |
2087 | info->port.flags |= ASYNC_CTS_FLOW; | 2087 | if (cflag & CRTSCTS) |
2088 | info->cor2 |= CyCtsAE; | 2088 | info->cor2 |= CyCtsAE; |
2089 | } else { | 2089 | else |
2090 | info->port.flags &= ~ASYNC_CTS_FLOW; | ||
2091 | info->cor2 &= ~CyCtsAE; | 2090 | info->cor2 &= ~CyCtsAE; |
2092 | } | ||
2093 | if (cflag & CLOCAL) | 2091 | if (cflag & CLOCAL) |
2094 | info->port.flags &= ~ASYNC_CHECK_CD; | 2092 | info->port.flags &= ~ASYNC_CHECK_CD; |
2095 | else | 2093 | else |
@@ -2234,7 +2232,7 @@ static void cy_set_line_char(struct cyclades_port *info, struct tty_struct *tty) | |||
2234 | } | 2232 | } |
2235 | /* As the HW flow control is done in firmware, the driver | 2233 | /* As the HW flow control is done in firmware, the driver |
2236 | doesn't need to care about it */ | 2234 | doesn't need to care about it */ |
2237 | info->port.flags &= ~ASYNC_CTS_FLOW; | 2235 | tty_port_set_cts_flow(&info->port, 0); |
2238 | 2236 | ||
2239 | /* XON/XOFF/XANY flow control flags */ | 2237 | /* XON/XOFF/XANY flow control flags */ |
2240 | sw_flow = 0; | 2238 | sw_flow = 0; |
diff --git a/drivers/tty/isicom.c b/drivers/tty/isicom.c index 8bf67630018b..c5f06b54b9ca 100644 --- a/drivers/tty/isicom.c +++ b/drivers/tty/isicom.c | |||
@@ -765,11 +765,9 @@ static void isicom_config_port(struct tty_struct *tty) | |||
765 | 765 | ||
766 | /* flow control settings ...*/ | 766 | /* flow control settings ...*/ |
767 | flow_ctrl = 0; | 767 | flow_ctrl = 0; |
768 | port->port.flags &= ~ASYNC_CTS_FLOW; | 768 | tty_port_set_cts_flow(&port->port, C_CRTSCTS(tty)); |
769 | if (C_CRTSCTS(tty)) { | 769 | if (C_CRTSCTS(tty)) |
770 | port->port.flags |= ASYNC_CTS_FLOW; | ||
771 | flow_ctrl |= ISICOM_CTSRTS; | 770 | flow_ctrl |= ISICOM_CTSRTS; |
772 | } | ||
773 | if (I_IXON(tty)) | 771 | if (I_IXON(tty)) |
774 | flow_ctrl |= ISICOM_RESPOND_XONXOFF; | 772 | flow_ctrl |= ISICOM_RESPOND_XONXOFF; |
775 | if (I_IXOFF(tty)) | 773 | if (I_IXOFF(tty)) |
diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c index f23c2a101688..8f3fdad37ac7 100644 --- a/drivers/tty/mxser.c +++ b/drivers/tty/mxser.c | |||
@@ -711,8 +711,8 @@ static int mxser_change_speed(struct tty_struct *tty, | |||
711 | /* CTS flow control flag and modem status interrupts */ | 711 | /* CTS flow control flag and modem status interrupts */ |
712 | info->IER &= ~UART_IER_MSI; | 712 | info->IER &= ~UART_IER_MSI; |
713 | info->MCR &= ~UART_MCR_AFE; | 713 | info->MCR &= ~UART_MCR_AFE; |
714 | tty_port_set_cts_flow(&info->port, cflag & CRTSCTS); | ||
714 | if (cflag & CRTSCTS) { | 715 | if (cflag & CRTSCTS) { |
715 | info->port.flags |= ASYNC_CTS_FLOW; | ||
716 | info->IER |= UART_IER_MSI; | 716 | info->IER |= UART_IER_MSI; |
717 | if ((info->type == PORT_16550A) || (info->board->chip_flag)) { | 717 | if ((info->type == PORT_16550A) || (info->board->chip_flag)) { |
718 | info->MCR |= UART_MCR_AFE; | 718 | info->MCR |= UART_MCR_AFE; |
@@ -744,8 +744,6 @@ static int mxser_change_speed(struct tty_struct *tty, | |||
744 | } | 744 | } |
745 | } | 745 | } |
746 | } | 746 | } |
747 | } else { | ||
748 | info->port.flags &= ~ASYNC_CTS_FLOW; | ||
749 | } | 747 | } |
750 | outb(info->MCR, info->ioaddr + UART_MCR); | 748 | outb(info->MCR, info->ioaddr + UART_MCR); |
751 | if (cflag & CLOCAL) { | 749 | if (cflag & CLOCAL) { |
diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c index 3768e5c71c0b..0e4290183280 100644 --- a/drivers/tty/synclink.c +++ b/drivers/tty/synclink.c | |||
@@ -1966,11 +1966,8 @@ static void mgsl_change_params(struct mgsl_struct *info) | |||
1966 | } | 1966 | } |
1967 | info->timeout += HZ/50; /* Add .02 seconds of slop */ | 1967 | info->timeout += HZ/50; /* Add .02 seconds of slop */ |
1968 | 1968 | ||
1969 | if (cflag & CRTSCTS) | 1969 | tty_port_set_cts_flow(&info->port, cflag & CRTSCTS); |
1970 | info->port.flags |= ASYNC_CTS_FLOW; | 1970 | |
1971 | else | ||
1972 | info->port.flags &= ~ASYNC_CTS_FLOW; | ||
1973 | |||
1974 | if (cflag & CLOCAL) | 1971 | if (cflag & CLOCAL) |
1975 | info->port.flags &= ~ASYNC_CHECK_CD; | 1972 | info->port.flags &= ~ASYNC_CHECK_CD; |
1976 | else | 1973 | else |
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index ceeaeb703f51..5da69d30f816 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c | |||
@@ -2576,10 +2576,7 @@ static void change_params(struct slgt_info *info) | |||
2576 | } | 2576 | } |
2577 | info->timeout += HZ/50; /* Add .02 seconds of slop */ | 2577 | info->timeout += HZ/50; /* Add .02 seconds of slop */ |
2578 | 2578 | ||
2579 | if (cflag & CRTSCTS) | 2579 | tty_port_set_cts_flow(&info->port, cflag & CRTSCTS); |
2580 | info->port.flags |= ASYNC_CTS_FLOW; | ||
2581 | else | ||
2582 | info->port.flags &= ~ASYNC_CTS_FLOW; | ||
2583 | 2580 | ||
2584 | if (cflag & CLOCAL) | 2581 | if (cflag & CLOCAL) |
2585 | info->port.flags &= ~ASYNC_CHECK_CD; | 2582 | info->port.flags &= ~ASYNC_CHECK_CD; |
diff --git a/drivers/tty/synclinkmp.c b/drivers/tty/synclinkmp.c index b0cce4b24e51..7a21491d0c0d 100644 --- a/drivers/tty/synclinkmp.c +++ b/drivers/tty/synclinkmp.c | |||
@@ -2813,10 +2813,7 @@ static void change_params(SLMP_INFO *info) | |||
2813 | } | 2813 | } |
2814 | info->timeout += HZ/50; /* Add .02 seconds of slop */ | 2814 | info->timeout += HZ/50; /* Add .02 seconds of slop */ |
2815 | 2815 | ||
2816 | if (cflag & CRTSCTS) | 2816 | tty_port_set_cts_flow(&info->port, cflag & CRTSCTS); |
2817 | info->port.flags |= ASYNC_CTS_FLOW; | ||
2818 | else | ||
2819 | info->port.flags &= ~ASYNC_CTS_FLOW; | ||
2820 | 2817 | ||
2821 | if (cflag & CLOCAL) | 2818 | if (cflag & CLOCAL) |
2822 | info->port.flags &= ~ASYNC_CHECK_CD; | 2819 | info->port.flags &= ~ASYNC_CHECK_CD; |