diff options
| author | Avichal Rakesh <[email protected]> | 2023-05-08 23:11:03 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-05-29 14:22:50 +0000 |
| commit | c3ff12a92bd7072170978b8b41c2fa41b038139a (patch) | |
| tree | 7ce8984ca648d584807dec9ac7db0d40fbe66f26 /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | usb: gadget: u_serial: Avoid spinlock recursion in __gs_console_push (diff) | |
| download | kernel-c3ff12a92bd7072170978b8b41c2fa41b038139a.tar.gz kernel-c3ff12a92bd7072170978b8b41c2fa41b038139a.zip | |
usb: gadget: uvc: queue empty isoc requests if no video buffer is available
ISOC transfers expect a certain cadence of requests being queued. Not
keeping up with the expected rate of requests results in missed ISOC
transfers (EXDEV). The application layer may or may not produce video
frames to match this expectation, so uvc gadget driver must handle cases
where the application is not queuing up buffers fast enough to fulfill
ISOC requirements.
Currently, uvc gadget driver waits for new video buffer to become available
before queuing up usb requests. With this patch the gadget driver queues up
0 length usb requests whenever there are no video buffers available. The
USB controller's complete callback is used as the limiter for how quickly
the 0 length packets will be queued. Video buffers are still queued as
soon as they become available.
Link: https://lore.kernel.org/CAMHf4WKbi6KBPQztj9FA4kPvESc1fVKrC8G73-cs6tTeQby9=w@mail.gmail.com/
Signed-off-by: Avichal Rakesh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
