diff options
author | Gary King <gking@nvidia.com> | 2010-02-12 18:35:19 -0800 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-02-12 18:35:19 -0800 |
commit | 3f2d6f61dbe70cb8bed9a7e69c2a9b6adae874a5 (patch) | |
tree | 7c4e9d381600a53361430f5acca929aa4ed79d41 /include | |
parent | e61d2802714a27bd39bf96d912ff1b172e9f5771 (diff) |
f_mass_storage: allow platform to set bulk buffer size
add a field to the android_usb_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 harmony (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.
Change-Id: I0da025f1317506cbd3257fe697a9297b0516d9e9
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/android.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/android.h b/include/linux/usb/android.h index 4e7f419149d8..9c78d1e202c1 100644 --- a/include/linux/usb/android.h +++ b/include/linux/usb/android.h @@ -35,6 +35,9 @@ struct android_usb_platform_data { /* number of LUNS for mass storage function */ int nluns; + + /* size, in bytes, of the mass storage bulk buffer */ + size_t bulk_size; }; /* Platform data for "usb_mass_storage" driver. |