projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e69f7a6
)
USB: mxu11x0: fix modem-control handling on B0-transitions
author
Johan Hovold
<johan@kernel.org>
Tue, 29 Dec 2015 12:36:13 +0000
(13:36 +0100)
committer
Johan Hovold
<johan@kernel.org>
Tue, 29 Dec 2015 12:43:14 +0000
(13:43 +0100)
Make sure to raise DTR and RTS on transitions from B0 and leave the
other bits unchanged.
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mxu11x0.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/mxu11x0.c
b/drivers/usb/serial/mxu11x0.c
index c6c4776997fcdeac7f7496b997a6c73c19739407..c408cd7b4dc658634ce6d7b393d28ca092f469af 100644
(file)
--- a/
drivers/usb/serial/mxu11x0.c
+++ b/
drivers/usb/serial/mxu11x0.c
@@
-595,7
+595,7
@@
static void mxu1_set_termios(struct tty_struct *tty,
if (C_BAUD(tty) == B0)
mcr &= ~(MXU1_MCR_DTR | MXU1_MCR_RTS);
else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
- mcr |=
~(MXU1_MCR_DTR | MXU1_MCR_RTS)
;
+ mcr |=
MXU1_MCR_DTR | MXU1_MCR_RTS
;
status = mxu1_set_mcr(port, mcr);
if (status)