]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: CP210x Fix Break On/Off
authorCraig Shelley <craig@microtron.org.uk>
Wed, 18 Aug 2010 21:13:39 +0000 (22:13 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:44:07 +0000 (16:44 -0700)
commit 72916791cbeb9cc607ae620cfba207dea481cd76 upstream.

The definitions for BREAK_ON and BREAK_OFF are inverted, causing break
requests to fail. This patch sets BREAK_ON and BREAK_OFF to the correct
values.

Signed-off-by: Craig Shelley <craig@microtron.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cp210x.c

index 2128d2c36fd57d37a7d9c1d7195ae1993346c960..2d36ed230aab458c8ec4f55080c76271934be9aa 100644 (file)
@@ -223,8 +223,8 @@ static struct usb_serial_driver cp210x_device = {
 #define BITS_STOP_2            0x0002
 
 /* CP210X_SET_BREAK */
-#define BREAK_ON               0x0000
-#define BREAK_OFF              0x0001
+#define BREAK_ON               0x0001
+#define BREAK_OFF              0x0000
 
 /* CP210X_(SET_MHS|GET_MDMSTS) */
 #define CONTROL_DTR            0x0001