Skip to content

Commit 9a1f298

Browse files
jhovoldgregkh
authored andcommitted
USB: visor: increase bulk-out buffer size
Increase the bulk-out buffer size to avoid any regression in throughput after replacing the old writing scheme which used dynamic buffers (e.g. up to 2k). 256b has been determined to be a good choice for several drivers including ftdi_sio which used to have a more or less identical write implementation. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 2afd828 commit 9a1f298

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/usb/serial/visor.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ static struct usb_serial_driver handspring_device = {
186186
.usb_driver = &visor_driver,
187187
.id_table = id_table,
188188
.num_ports = 2,
189+
.bulk_out_size = 256,
189190
.open = visor_open,
190191
.close = visor_close,
191192
.throttle = usb_serial_generic_throttle,
@@ -206,6 +207,7 @@ static struct usb_serial_driver clie_5_device = {
206207
.usb_driver = &visor_driver,
207208
.id_table = clie_id_5_table,
208209
.num_ports = 2,
210+
.bulk_out_size = 256,
209211
.open = visor_open,
210212
.close = visor_close,
211213
.throttle = usb_serial_generic_throttle,
@@ -226,6 +228,7 @@ static struct usb_serial_driver clie_3_5_device = {
226228
.usb_driver = &visor_driver,
227229
.id_table = clie_id_3_5_table,
228230
.num_ports = 1,
231+
.bulk_out_size = 256,
229232
.open = visor_open,
230233
.close = visor_close,
231234
.throttle = usb_serial_generic_throttle,

0 commit comments

Comments
 (0)