diff options
author | Johan Hovold <johan@kernel.org> | 2017-03-16 19:13:50 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-03-28 12:14:10 +0300 |
commit | c0dcf242d27a785930d73885471b368798720718 (patch) | |
tree | 1111859d2ff66f9c0a71f8234e7cc260cdf34dae /drivers/usb/serial/ti_usb_3410_5052.c | |
parent | d27444152c0d1fb969ee0acb8334287cf8b30d1b (diff) | |
download | linux-c0dcf242d27a785930d73885471b368798720718.tar.xz |
USB: serial: ti_usb_3410_5052: always require a bulk-out endpoint
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>
Diffstat (limited to 'drivers/usb/serial/ti_usb_3410_5052.c')
-rw-r--r-- | drivers/usb/serial/ti_usb_3410_5052.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 3107bf5d1c96..e16558b63fcc 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c @@ -427,6 +427,7 @@ static struct usb_serial_driver ti_1port_device = { .description = "TI USB 3410 1 port adapter", .id_table = ti_id_table_3410, .num_ports = 1, + .num_bulk_out = 1, .attach = ti_startup, .release = ti_release, .port_probe = ti_port_probe, @@ -459,6 +460,7 @@ static struct usb_serial_driver ti_2port_device = { .description = "TI USB 5052 2 port adapter", .id_table = ti_id_table_5052, .num_ports = 2, + .num_bulk_out = 1, .attach = ti_startup, .release = ti_release, .port_probe = ti_port_probe, |