kernel: log uvc prep request sizing

This commit is contained in:
Brad Stein 2026-01-23 03:04:34 -03:00
parent d8a7dd5a98
commit ffc79982fc

View File

@ -45,3 +45,25 @@
/*
* Safe to access request related fields without req_lock because
* this is the only thread currently active, and no other
@@ -510,6 +532,19 @@
if (req_size > max_req_size) {
/* The prepared interval length and expected buffer size
* is not possible to stream with the currently configured
* isoc bandwidth. Fallback to the maximum.
*/
req_size = max_req_size;
}
video->req_size = req_size;
if (!req_size || !video->max_payload_size || !video->imagesize || !nreq) {
uvcg_info(&uvc->func,
"Video prep requests: imagesize=%u interval=%u interval_dur=%u nreq=%u header=%u req_size=%u max_req=%u max_payload=%u ep_maxpacket=%u maxburst=%u mult=%u bInterval=%u speed=%u\n",
video->imagesize, video->interval, interval_duration, nreq,
header_size, req_size, max_req_size,
video->max_payload_size, video->ep->maxpacket,
video->ep->maxburst, video->ep->mult,
video->ep->desc->bInterval, cdev->gadget->speed);
}
/* We need to compensate the amount of requests to be