diff options
Diffstat (limited to 'net/irda/ircomm/ircomm_tty.c')
| -rw-r--r-- | net/irda/ircomm/ircomm_tty.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/net/irda/ircomm/ircomm_tty.c b/net/irda/ircomm/ircomm_tty.c index a4237707f79d..da126ee6d218 100644 --- a/net/irda/ircomm/ircomm_tty.c +++ b/net/irda/ircomm/ircomm_tty.c | |||
| @@ -287,14 +287,14 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self, | |||
| 287 | 287 | ||
| 288 | if (filp->f_flags & O_NONBLOCK) { | 288 | if (filp->f_flags & O_NONBLOCK) { |
| 289 | /* nonblock mode is set */ | 289 | /* nonblock mode is set */ |
| 290 | if (tty->termios.c_cflag & CBAUD) | 290 | if (C_BAUD(tty)) |
| 291 | tty_port_raise_dtr_rts(port); | 291 | tty_port_raise_dtr_rts(port); |
| 292 | port->flags |= ASYNC_NORMAL_ACTIVE; | 292 | port->flags |= ASYNC_NORMAL_ACTIVE; |
| 293 | pr_debug("%s(), O_NONBLOCK requested!\n", __func__); | 293 | pr_debug("%s(), O_NONBLOCK requested!\n", __func__); |
| 294 | return 0; | 294 | return 0; |
| 295 | } | 295 | } |
| 296 | 296 | ||
| 297 | if (tty->termios.c_cflag & CLOCAL) { | 297 | if (C_CLOCAL(tty)) { |
| 298 | pr_debug("%s(), doing CLOCAL!\n", __func__); | 298 | pr_debug("%s(), doing CLOCAL!\n", __func__); |
| 299 | do_clocal = 1; | 299 | do_clocal = 1; |
| 300 | } | 300 | } |
| @@ -806,7 +806,7 @@ static void ircomm_tty_throttle(struct tty_struct *tty) | |||
| 806 | ircomm_tty_send_xchar(tty, STOP_CHAR(tty)); | 806 | ircomm_tty_send_xchar(tty, STOP_CHAR(tty)); |
| 807 | 807 | ||
| 808 | /* Hardware flow control? */ | 808 | /* Hardware flow control? */ |
| 809 | if (tty->termios.c_cflag & CRTSCTS) { | 809 | if (C_CRTSCTS(tty)) { |
| 810 | self->settings.dte &= ~IRCOMM_RTS; | 810 | self->settings.dte &= ~IRCOMM_RTS; |
| 811 | self->settings.dte |= IRCOMM_DELTA_RTS; | 811 | self->settings.dte |= IRCOMM_DELTA_RTS; |
| 812 | 812 | ||
| @@ -831,12 +831,11 @@ static void ircomm_tty_unthrottle(struct tty_struct *tty) | |||
| 831 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 831 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
| 832 | 832 | ||
| 833 | /* Using software flow control? */ | 833 | /* Using software flow control? */ |
| 834 | if (I_IXOFF(tty)) { | 834 | if (I_IXOFF(tty)) |
| 835 | ircomm_tty_send_xchar(tty, START_CHAR(tty)); | 835 | ircomm_tty_send_xchar(tty, START_CHAR(tty)); |
| 836 | } | ||
| 837 | 836 | ||
| 838 | /* Using hardware flow control? */ | 837 | /* Using hardware flow control? */ |
| 839 | if (tty->termios.c_cflag & CRTSCTS) { | 838 | if (C_CRTSCTS(tty)) { |
| 840 | self->settings.dte |= (IRCOMM_RTS|IRCOMM_DELTA_RTS); | 839 | self->settings.dte |= (IRCOMM_RTS|IRCOMM_DELTA_RTS); |
| 841 | 840 | ||
| 842 | ircomm_param_request(self, IRCOMM_DTE, TRUE); | 841 | ircomm_param_request(self, IRCOMM_DTE, TRUE); |
| @@ -1268,10 +1267,6 @@ static void ircomm_tty_line_info(struct ircomm_tty_cb *self, struct seq_file *m) | |||
| 1268 | seq_printf(m, "%cASYNC_LOW_LATENCY", sep); | 1267 | seq_printf(m, "%cASYNC_LOW_LATENCY", sep); |
| 1269 | sep = '|'; | 1268 | sep = '|'; |
| 1270 | } | 1269 | } |
| 1271 | if (self->port.flags & ASYNC_CLOSING) { | ||
| 1272 | seq_printf(m, "%cASYNC_CLOSING", sep); | ||
| 1273 | sep = '|'; | ||
| 1274 | } | ||
| 1275 | if (self->port.flags & ASYNC_NORMAL_ACTIVE) { | 1270 | if (self->port.flags & ASYNC_NORMAL_ACTIVE) { |
| 1276 | seq_printf(m, "%cASYNC_NORMAL_ACTIVE", sep); | 1271 | seq_printf(m, "%cASYNC_NORMAL_ACTIVE", sep); |
| 1277 | sep = '|'; | 1272 | sep = '|'; |
