Commit 5d084e97 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Dan Vacura
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>
Bug: 229140375
(cherry picked from commit 9973772d)
Signed-off-by: default avatarDan Vacura <w36195@motorola.com>
Change-Id: I1385bf8f973f3e5ee6c76193bffe0046eca22439
parent 15a663eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment