]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: uvc: add bInterval checking for HS mode
authorPawel Laszczak <pawell@cadence.com>
Mon, 8 Mar 2021 12:53:38 +0000 (13:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Mar 2021 08:02:27 +0000 (09:02 +0100)
commitc9271ede5a95e04b59e2bca505c6b5a29531cd99
tree550810240434c7cd5844d141dfe89ef2e7e89b74
parent68b0b3b5bd792e7b154bac27a538f3bff0e90695
usb: gadget: uvc: add bInterval checking for HS mode

Patch adds extra checking for bInterval passed by configfs.
The 5.6.4 chapter of USB Specification (rev. 2.0) say:
"A high-bandwidth endpoint must specify a period of 1x125 µs
(i.e., a bInterval value of 1)."

The issue was observed during testing UVC class on CV.
I treat this change as improvement because we can control
bInterval by configfs.

Reviewed-by: Peter Chen <peter.chen@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20210308125338.4824-1-pawell@gli-login.cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uvc.c