usb: gadget: dummy_hcd: Set transfer interval to 1 microframe
authorMarcello Sylvester Bauer <sylv@sylv.io>
Thu, 11 Apr 2024 15:22:11 +0000 (17:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Apr 2024 14:47:07 +0000 (16:47 +0200)
commit0a723ed3baa941ca4f51d87bab00661f41142835
treec63bdd4268b8911f665d91ee85648f094d138bfd
parenta7f3813e589fd8e2834720829a47b5eb914a9afe
usb: gadget: dummy_hcd: Set transfer interval to 1 microframe

Currently, the transfer polling interval is set to 1ms, which is the
frame rate of full-speed and low-speed USB. The USB 2.0 specification
introduces microframes (125 microseconds) to improve the timing
precision of data transfers.

Reducing the transfer interval to 1 microframe increases data throughput
for high-speed and super-speed USB communication

Signed-off-by: Marcello Sylvester Bauer <marcello.bauer@9elements.com>
Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
Link: https://lore.kernel.org/r/6295dbb84ca76884551df9eb157cce569377a22c.1712843963.git.sylv@sylv.io
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/dummy_hcd.c