Commit b9cfdaa0 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Todd Kjos
Browse files

UPSTREAM: usb: gadget: uvc: make uvc_num_requests depend on gadget speed



While sending bigger images is possible with USB_SPEED_SUPER it is
better to use more isochronous requests in flight. This patch makes the
number uvc_num_requests dynamic by changing it depending on the gadget
speed.

Reviewed-by: default avatarPaul Elder <paul.elder@ideasonboard.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20210628155311.16762-3-m.grzeschik@pengutronix.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit 9973772d)
Bug: 242344221
Change-Id: Ie3757dde02125eaa0e28b6181c475726cb344742
Signed-off-by: default avatarAvichal Rakesh <arakesh@google.com>
parent 6a2b7472
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment