kernel: fix uvc debug patch

This commit is contained in:
Brad Stein 2026-01-22 15:30:42 -03:00
parent 48dfe4bae7
commit d8a7dd5a98

View File

@ -1,7 +1,6 @@
--- a/drivers/usb/gadget/function/uvc_video.c
+++ b/drivers/usb/gadget/function/uvc_video.c
@@
int uvcg_video_enable(struct uvc_video *video)
@@ -763,12 +763,44 @@
{
int ret;
@ -22,7 +21,7 @@
"Video enable failed, device is uninitialized.\n");
return -ENODEV;
}
+
+ if (!video->kworker || !video->async_wq) {
+ uvcg_err(&video->uvc->func,
+ "Video enable failed, missing worker(s) kworker=%p async_wq=%p\n",
@ -42,6 +41,7 @@
+ video->req_size, video->max_payload_size,
+ video->uvc_num_requests, video->reqs_per_frame,
+ video->queue.use_sg, video->queue.flags);
+
/*
* Safe to access request related fields without req_lock because
* this is the only thread currently active, and no other