From: Craig Shelley Date: Wed, 18 Aug 2010 21:13:39 +0000 (+0100) Subject: USB: CP210x Fix Break On/Off X-Git-Tag: v2.6.36-rc3~41^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72916791cbeb9cc607ae620cfba207dea481cd76;p=platform%2Fkernel%2Flinux-stable.git USB: CP210x Fix Break On/Off 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 2bef441..80bf833 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c @@ -222,8 +222,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