mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
USB: fix interaction between different interfaces in an "Option" usb device
Just the serial port in the first interface should control DTR and RTS lines. This way, the closing of the rest of the ports does not produce a= hangup in the communication. Signed-off-by: Miguel Angel Alvarez <[email protected]> Signed-off-by: Matthias Urlichs <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
25c77b3294
commit
8c1527132c
1 changed files with 3 additions and 0 deletions
|
|
@ -625,6 +625,9 @@ static int option_send_setup(struct usb_serial_port *port)
|
|||
|
||||
dbg("%s", __FUNCTION__);
|
||||
|
||||
if (port->number != 0)
|
||||
return 0;
|
||||
|
||||
portdata = usb_get_serial_port_data(port);
|
||||
|
||||
if (port->tty) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue