summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-16 17:13:42 +0100
committerJohan Hovold <johan@kernel.org>2017-03-28 11:00:10 +0200
commit8d9c4d9ebffe5ed7be34dad7bc4ef4ab6807c501 (patch)
tree817d8c1c146c03de9dfcfa445eeb3d506d5d29de /drivers/usb
parentUSB: serial: io_ti: use calc_num_endpoints to verify endpoints (diff)
downloadlinux-8d9c4d9ebffe5ed7be34dad7bc4ef4ab6807c501.tar.xz
linux-8d9c4d9ebffe5ed7be34dad7bc4ef4ab6807c501.zip
USB: serial: io_ti: 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')
-rw-r--r--drivers/usb/serial/io_ti.c2
1 files changed, 2 insertions, 0 deletions
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,