From: Miguel Angel Alvarez Date: Thu, 14 Dec 2006 18:49:35 +0000 (+0100) Subject: USB: fix interaction between different interfaces in an "Option" usb device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8c1527132c25512563b197b35453c7da22b4d699;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Matthias Urlichs Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 819266b7e2f8..5ca04e82ea19 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -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) {