Skip to content

Commit

Permalink
USB: CP210x Fix Break On/Off
Browse files Browse the repository at this point in the history
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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Craig Shelley authored and Greg Kroah-Hartman committed Aug 24, 2010
1 parent f36ecd5 commit 7291679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/serial/cp210x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7291679

Please sign in to comment.