mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 07:03:38 +00:00
USB: kobil_sct: termios encoding fixups
- Clear unsupported CMSPAR - Encode resulting speeds Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
74240b07a9
commit
a6ebf80dbc
1 changed files with 4 additions and 1 deletions
|
@ -616,8 +616,9 @@ static void kobil_set_termios(struct usb_serial_port *port, struct ktermios *old
|
||||||
case 1200:
|
case 1200:
|
||||||
urb_val = SUSBCR_SBR_1200;
|
urb_val = SUSBCR_SBR_1200;
|
||||||
break;
|
break;
|
||||||
case 9600:
|
|
||||||
default:
|
default:
|
||||||
|
speed = 9600;
|
||||||
|
case 9600:
|
||||||
urb_val = SUSBCR_SBR_9600;
|
urb_val = SUSBCR_SBR_9600;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -641,6 +642,8 @@ static void kobil_set_termios(struct usb_serial_port *port, struct ktermios *old
|
||||||
urb_val |= SUSBCR_SPASB_NoParity;
|
urb_val |= SUSBCR_SPASB_NoParity;
|
||||||
strcat(settings, "No Parity");
|
strcat(settings, "No Parity");
|
||||||
}
|
}
|
||||||
|
port->tty->termios->c_cflag &= ~CMSPAR;
|
||||||
|
tty_encode_baud_rate(port->tty, speed, speed);
|
||||||
|
|
||||||
result = usb_control_msg( port->serial->dev,
|
result = usb_control_msg( port->serial->dev,
|
||||||
usb_rcvctrlpipe(port->serial->dev, 0 ),
|
usb_rcvctrlpipe(port->serial->dev, 0 ),
|
||||||
|
|
Loading…
Reference in a new issue