]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: uvcvideo: Increase UVC_CTRL_CONTROL_TIMEOUT to 5 seconds.
authorJames Hilliard <james.hilliard1@gmail.com>
Sun, 14 Nov 2021 08:52:36 +0000 (09:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 08:04:24 +0000 (09:04 +0100)
commitad894c6dbf15f59428c52d1faac0960ebaeae731
treefbbbe91e4754c186cb3427828470d5ec87e685c3
parentfbb6fcd8b19f54e974eb8d4aa00c2b9e4288a603
media: uvcvideo: Increase UVC_CTRL_CONTROL_TIMEOUT to 5 seconds.

[ Upstream commit c8ed7d2f614cd8b315981d116c7a2fb01829500d ]

Some uvc devices appear to require the maximum allowed USB timeout
for GET_CUR/SET_CUR requests.

So lets just bump the UVC control timeout to 5 seconds which is the
same as the usb ctrl get/set defaults:
USB_CTRL_GET_TIMEOUT 5000
USB_CTRL_SET_TIMEOUT 5000

It fixes the following runtime warnings:
   Failed to query (GET_CUR) UVC control 11 on unit 2: -110 (exp. 1).
   Failed to query (SET_CUR) UVC control 3 on unit 2: -110 (exp. 2).

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/uvc/uvcvideo.h