USB: serial: drop unused ASYNC flags
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jan 2017 17:22:54 +0000 (18:22 +0100)
committerJohan Hovold <johan@kernel.org>
Thu, 26 Jan 2017 08:49:13 +0000 (09:49 +0100)
Do not report ASYNC_SKIP_TEST or ASYNC_AUTO_IRQ as being set in
TIOCGSERIAL handlers as these flags are not supported and do not really
make any sense for USB serial devices in the first place.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_ti.c
drivers/usb/serial/mos7720.c
drivers/usb/serial/mos7840.c
drivers/usb/serial/opticon.c
drivers/usb/serial/quatech2.c
drivers/usb/serial/ssu100.c
drivers/usb/serial/whiteheat.c

index 8ab5f5b49ef36a2f95556647d512bbc0a3d24d55..92abf92e566949d12de0387e324ba6042cc5d812 100644 (file)
@@ -1572,7 +1572,6 @@ static int get_serial_info(struct edgeport_port *edge_port,
        tmp.line                = edge_port->port->minor;
        tmp.port                = edge_port->port->port_number;
        tmp.irq                 = 0;
-       tmp.flags               = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
        tmp.xmit_fifo_size      = edge_port->maxTxCredits;
        tmp.baud_base           = 9600;
        tmp.close_delay         = 5*HZ;
index 9a0db2965fbb45df5fd6b67f5eddb9d90969869c..ceaeebaa6f90587b6d8ea01e53daaad243be8b6d 100644 (file)
@@ -2468,7 +2468,6 @@ static int get_serial_info(struct edgeport_port *edge_port,
        tmp.line                = edge_port->port->minor;
        tmp.port                = edge_port->port->port_number;
        tmp.irq                 = 0;
-       tmp.flags               = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
        tmp.xmit_fifo_size      = edge_port->port->bulk_out_size;
        tmp.baud_base           = 9600;
        tmp.close_delay         = 5*HZ;
index acf431e026990e6027919094c77be173a45a9c19..f075121c6e32329d136935d2d1d56ae8b49c784f 100644 (file)
@@ -1851,7 +1851,6 @@ static int get_serial_info(struct moschip_port *mos7720_port,
        tmp.line                = mos7720_port->port->minor;
        tmp.port                = mos7720_port->port->port_number;
        tmp.irq                 = 0;
-       tmp.flags               = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
        tmp.xmit_fifo_size      = NUM_URBS * URB_TRANSFER_BUFFER_SIZE;
        tmp.baud_base           = 9600;
        tmp.close_delay         = 5*HZ;
index 155006acf918121e3f6ccd3eaa3fc7f8eb724460..d1b92f582478934766370b3cd785af0255b258b6 100644 (file)
@@ -1963,7 +1963,6 @@ static int mos7840_get_serial_info(struct moschip_port *mos7840_port,
        tmp.line = mos7840_port->port->minor;
        tmp.port = mos7840_port->port->port_number;
        tmp.irq = 0;
-       tmp.flags = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
        tmp.xmit_fifo_size = NUM_URBS * URB_TRANSFER_BUFFER_SIZE;
        tmp.baud_base = 9600;
        tmp.close_delay = 5 * HZ;
index b3c64f557d6057706932464c11af4154245ff12a..3937b9c3cc691b778cfb7a310a6e5400ee53d095 100644 (file)
@@ -343,7 +343,6 @@ static int get_serial_info(struct usb_serial_port *port,
        tmp.line                = port->minor;
        tmp.port                = 0;
        tmp.irq                 = 0;
-       tmp.flags               = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
        tmp.xmit_fifo_size      = 1024;
        tmp.baud_base           = 9600;
        tmp.close_delay         = 5*HZ;
index cf29128327d3a8b16defcd7d837e156c230fc65e..fdbb904d153f735b83c007137eaa42d5bf76a6b4 100644 (file)
@@ -465,7 +465,6 @@ static int get_serial_info(struct usb_serial_port *port,
        tmp.line                = port->minor;
        tmp.port                = 0;
        tmp.irq                 = 0;
-       tmp.flags               = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
        tmp.xmit_fifo_size      = port->bulk_out_size;
        tmp.baud_base           = 9600;
        tmp.close_delay         = 5*HZ;
index 55814538ff1f7d631b55046bb6108033bc3a20af..5aa7bbbeba3dc62dad40f6f9ea1e6d830e29d835 100644 (file)
@@ -339,7 +339,6 @@ static int get_serial_info(struct usb_serial_port *port,
        tmp.line                = port->minor;
        tmp.port                = 0;
        tmp.irq                 = 0;
-       tmp.flags               = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
        tmp.xmit_fifo_size      = port->bulk_out_size;
        tmp.baud_base           = 9600;
        tmp.close_delay         = 5*HZ;
index d3ea90bef84d98a67f110f6040ca70ec12b7a5fb..5ab65eb1dacc8b5aa2fdf5152df2a381180683c2 100644 (file)
@@ -487,7 +487,6 @@ static int whiteheat_ioctl(struct tty_struct *tty,
                serstruct.type = PORT_16654;
                serstruct.line = port->minor;
                serstruct.port = port->port_number;
-               serstruct.flags = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
                serstruct.xmit_fifo_size = kfifo_size(&port->write_fifo);
                serstruct.custom_divisor = 0;
                serstruct.baud_base = 460800;