diff options
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
-rw-r--r-- | drivers/usb/class/cdc-acm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 6771f884cb82..9d6495424b06 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
@@ -985,11 +985,12 @@ static void acm_tty_set_termios(struct tty_struct *tty, | |||
985 | /* FIXME: Needs to clear unsupported bits in the termios */ | 985 | /* FIXME: Needs to clear unsupported bits in the termios */ |
986 | acm->clocal = ((termios->c_cflag & CLOCAL) != 0); | 986 | acm->clocal = ((termios->c_cflag & CLOCAL) != 0); |
987 | 987 | ||
988 | if (!newline.dwDTERate) { | 988 | if (C_BAUD(tty) == B0) { |
989 | newline.dwDTERate = acm->line.dwDTERate; | 989 | newline.dwDTERate = acm->line.dwDTERate; |
990 | newctrl &= ~ACM_CTRL_DTR; | 990 | newctrl &= ~ACM_CTRL_DTR; |
991 | } else | 991 | } else if (termios_old && (termios_old->c_cflag & CBAUD) == B0) { |
992 | newctrl |= ACM_CTRL_DTR; | 992 | newctrl |= ACM_CTRL_DTR; |
993 | } | ||
993 | 994 | ||
994 | if (newctrl != acm->ctrlout) | 995 | if (newctrl != acm->ctrlout) |
995 | acm_set_control(acm, acm->ctrlout = newctrl); | 996 | acm_set_control(acm, acm->ctrlout = newctrl); |