USB: serial: io_ti: always require a bulk-out endpoint
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:42 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 09:00:10 +0000 (11:00 +0200)
These devices always require at least one bulk-out endpoint so let core
verify that.

This avoids attempting to send bulk data to the default pipe when
downloading firmware in boot mode.

Note that further endpoints are still needed when not in boot mode.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/io_ti.c

index 989795ab064a7917dd74ef49e9214badfae70cd7..c315836793b36dc665e991e1de0bbeab610bc860 100644 (file)
@@ -2747,6 +2747,7 @@ static struct usb_serial_driver edgeport_1port_device = {
        .description            = "Edgeport TI 1 port adapter",
        .id_table               = edgeport_1port_id_table,
        .num_ports              = 1,
+       .num_bulk_out           = 1,
        .open                   = edge_open,
        .close                  = edge_close,
        .throttle               = edge_throttle,
@@ -2785,6 +2786,7 @@ static struct usb_serial_driver edgeport_2port_device = {
        .description            = "Edgeport TI 2 port adapter",
        .id_table               = edgeport_2port_id_table,
        .num_ports              = 2,
+       .num_bulk_out           = 1,
        .open                   = edge_open,
        .close                  = edge_close,
        .throttle               = edge_throttle,