[PATCH 3/6] USB: mxu11x0: fix modem-control handling on B0-transitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Make sure to raise DTR and RTS on transitions from B0 and leave the
other bits unchanged.

Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
---
 drivers/usb/serial/mxu11x0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/serial/mxu11x0.c b/drivers/usb/serial/mxu11x0.c
index c6c4776997fc..c408cd7b4dc6 100644
--- 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)
-- 
2.4.10

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux