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 <[email protected]>
---
 drivers/usb/serial/io_ti.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 989795ab064a..c315836793b3 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -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,
-- 
2.12.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to