mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
cb3db5f6a5e08d58c2afed6b2ea2fd244f3e45ea
When I test the uvc gadget function, I find that the uvc gadget can only transfer the first frame image and then stop unexpectedly. Without this patch, the isochronous endpoints doesn't wait for a XferNotReady event to start the next frame image, and fail to transfer data. In this case, we will get an endpoint event DWC3_DEPEVT_XFERINPROGRESS and the event status is DEPEVT_STATUS_MISSED_ISOC, and the original code try to issue an EndTransfer command if the started_list is empty. However, the started_list is never empty, so it doesn't issue an EndTransfer command and not XferNotReady event happens. To fix this problem, this patch firstly checks if the event status is DEPEVT_STATUS_MISSED_ISOC and then unmap the isoc request and move the request to the pending list. Then it issue an EndTransfer command if the started_list is empty. After the EndTransfer is completed, we will get a XferNotReady event and it can start the isoc requests again. Change-Id: Ieac3ca9a177bc7599b29ae30bee243e47b3ba7c9 Signed-off-by: William Wu <william.wu@rock-chips.com>
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%