summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-11-16 17:14:32 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:38:08 -0800
commitbbf6a52c3f4072fc4621a66db47313bf828b9228 (patch)
tree607053d271e9b38d13f225c38e142d5572c7c6f7 /include/linux/usb
parentfe3d3c21b11119b5fb4e877b796cb541326440ba (diff)
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>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/f_mtp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/f_mtp.h b/include/linux/usb/f_mtp.h
index 426c6b5cc06a..e4fd88066389 100644
--- a/include/linux/usb/f_mtp.h
+++ b/include/linux/usb/f_mtp.h
@@ -29,7 +29,7 @@ struct mtp_file_range {
/* offset in file for start of transfer */
loff_t offset;
/* number of bytes to transfer */
- size_t length;
+ int64_t length;
};
struct mtp_event {