提交 8d9c4d9e 编写于 作者: J Johan Hovold

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: NJohan Hovold <johan@kernel.org>
上级 49f4ff2d
...@@ -2747,6 +2747,7 @@ static struct usb_serial_driver edgeport_1port_device = { ...@@ -2747,6 +2747,7 @@ static struct usb_serial_driver edgeport_1port_device = {
.description = "Edgeport TI 1 port adapter", .description = "Edgeport TI 1 port adapter",
.id_table = edgeport_1port_id_table, .id_table = edgeport_1port_id_table,
.num_ports = 1, .num_ports = 1,
.num_bulk_out = 1,
.open = edge_open, .open = edge_open,
.close = edge_close, .close = edge_close,
.throttle = edge_throttle, .throttle = edge_throttle,
...@@ -2785,6 +2786,7 @@ static struct usb_serial_driver edgeport_2port_device = { ...@@ -2785,6 +2786,7 @@ static struct usb_serial_driver edgeport_2port_device = {
.description = "Edgeport TI 2 port adapter", .description = "Edgeport TI 2 port adapter",
.id_table = edgeport_2port_id_table, .id_table = edgeport_2port_id_table,
.num_ports = 2, .num_ports = 2,
.num_bulk_out = 1,
.open = edge_open, .open = edge_open,
.close = edge_close, .close = edge_close,
.throttle = edge_throttle, .throttle = edge_throttle,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册