summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-02-12 18:35:19 -0800
committerGary King <gking@nvidia.com>2010-05-17 10:31:04 -0700
commitdb0941d0ce12af751c522410b0604878e8bf3114 (patch)
tree765fb6ebf86cbef193af205a4bcd0cc730ec5f2e /include
parent228390f13ef2b9c6df1933b158a2458a6ec37a92 (diff)
f_mass_storage: allow platform to set bulk buffer size
add a field to the usb_mass_storage_platform_data structure to allow platforms to specify the size of the bulk transfer buffer; if unspecified, default to the BULK_BUFFER_SIZE defined by f_mass_storage.c (previously defined as 4KiB). on tegra 2, performance of a class 10 SD card mounted as USB mass storage through this gadget has been measured to increase from ~7MB/sec read to ~17MB/sec read by increasing the buffer size from 4KiB to 16KiB.
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/android_composite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/android_composite.h b/include/linux/usb/android_composite.h
index 50889ba138b9..b7b4b5599d3f 100644
--- a/include/linux/usb/android_composite.h
+++ b/include/linux/usb/android_composite.h
@@ -79,6 +79,7 @@ struct usb_mass_storage_platform_data {
/* number of LUNS */
int nluns;
+ size_t bulk_size;
};
/* Platform data for USB ethernet driver. */