mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
cdd4d2410c2cc8b8c1a96edfb86087ca6ea236ec
Refer to USB 2.0 spec, if a transfer with size divisible to EPs max packet size and with req->zero field is set, which means that after data is transfered it is also should be transfered a zero length packet at the end. For uvc bulk in transfer, it only sets the req->zero flag to enable sent the zero length packet to USB Host if the video->payload_size equal to video->max_payload_size. However, this condition is not enough, because if the image size is more than the max_payload_size, the image will be split to several transaction, and if the payload_size at the last transaction is less than then max_payload_size, it will not enable the zero length packet xfer. This patch sets the req->zero flag if the whole image has been transferred. Change-Id: I9a62a8b1df0e44b4291b6add664357d148c19d1f 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%