]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: uvcvideo: Add more logging to uvc_query_ctrl()
authorRicardo Ribalda <ribalda@chromium.org>
Thu, 28 Nov 2024 20:53:42 +0000 (20:53 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 19 Dec 2024 14:44:43 +0000 (14:44 +0000)
commit060950f7f74ef242ce9eec837a75a53b379959f0
tree71c46d179c93a0c190d9d911fa4d514377f30402
parentf00ee2ca8da25ebccb8e19956d853c9055e2c8d0
media: uvcvideo: Add more logging to uvc_query_ctrl()

If we fail to query the control error code there is no information on
dmesg or in uvc_dbg. This makes difficult to debug the issue.

Print a proper error message when we cannot retrieve the error code from
the device.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20241128-uvc-readless-v5-2-cf16ed282af8@chromium.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/uvc/uvc_video.c