USB: gadget: f_mtp: Support for file transfer length greater than 4 gigabytes
authorMike Lockwood <lockwood@android.com>
Tue, 16 Nov 2010 22:14:32 +0000 (17:14 -0500)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:10 +0000 (09:09 -0700)
commit3e800b6fa0f559b4cda0dfc866b85c94138d1c99
tree8b260589f49584a0b779545c4423955c666edb0b
parent76ac65501829684f281b5ad79b7f730b86c335c7
USB: gadget: f_mtp: Support for file transfer length greater than 4 gigabytes

For backward compatibility with PTP, MTP is limited to a 32-bit file size.
When transferring files greater than 4 gig, MTP uses 0xFFFFFFFF as the file size
and the receiver reads until it receives a short packet.

Expanded size of mtp_file_range.length to 64 bits and added support for
writing zero length packets.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/f_mtp.c
include/linux/usb/f_mtp.h