Commit beecd97e authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Luca Stefani
Browse files

UPSTREAM: usb: gadget: uvc: decrease the interrupt load to a quarter



With usb3 we handle many more requests. Decrease the interrupt load by
only enabling the interrupt every quarter of the allocated requests.

Reviewed-by: default avatarPaul Elder <paul.elder@ideasonboard.com>
Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>

--
v1 -> v2: - edited patch description
	  - removed extra parantheses
	  - added a comment for the logic
	  - using unsigned int instead of int
	  - reinitializing req_int_count in uvcg_video_enable
v2 -> v3: -
Link: https://lore.kernel.org/r/20210628155311.16762-6-m.grzeschik@pengutronix.de



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

(cherry picked from commit fc78941d)
Bug: 242344221
Bug: 325993121
Change-Id: I4b40c4bbd90b9b8ad85957a77589fb304e00a876
Signed-off-by: default avatarAvichal Rakesh <arakesh@google.com>
Signed-off-by: default avatarLuca Stefani <luca@osomprivacy.com>
parent ad31e246
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment