]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: uvcvideo: Fix the bandwdith quirk on USB 3.x
authorMichal Pecio <michal.pecio@gmail.com>
Sun, 14 Apr 2024 17:00:40 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:15 +0000 (15:34 +0200)
commitd99d79869cdc95804b82dafcb442d5a6b4b5be5c
tree157663a5b6b58a82ef880cba3faad91871afb747
parent785c56c9c165dfea5932306c4b3e18ca8937296d
media: uvcvideo: Fix the bandwdith quirk on USB 3.x

[ Upstream commit 9e3d55fbd160b3ca376599a68b4cddfdc67d4153 ]

The bandwidth fixup quirk doesn't know that SuperSpeed exists and has
the same 8 service intervals per millisecond as High Speed, hence its
calculations are wrong.

Assume that all speeds from HS up use 8 intervals per millisecond.

No further changes are needed, updated code has been confirmed to work
with all speeds from FS to SS.

Signed-off-by: Michal Pecio <michal.pecio@gmail.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20240414190040.2255a0bc@foxbook
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/uvc/uvc_video.c