summaryrefslogtreecommitdiff
path: root/common/usb_storage.c
diff options
context:
space:
mode:
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>2012-08-10 18:22:32 +0200
committerMarek Vasut <marex@denx.de>2012-09-01 16:21:52 +0200
commit5cec214ecd7ddabc5480958c5355139c07ba8cee (patch)
tree3e33c13976b8dbddbac00b36972f70ffdac3da67 /common/usb_storage.c
parent14eb79b7a0861b299c6811e779ece7acf1cf320b (diff)
downloadu-boot-imx-5cec214ecd7ddabc5480958c5355139c07ba8cee.zip
u-boot-imx-5cec214ecd7ddabc5480958c5355139c07ba8cee.tar.gz
u-boot-imx-5cec214ecd7ddabc5480958c5355139c07ba8cee.tar.bz2
ehci-hcd: Boost transfer speed
This patch takes advantage of the hardware EHCI qTD queuing mechanism to avoid software and transfer splitting overhead so as to make transfers as fast as possible. The only drawback is a call to memalign. However, this is fast compared to the transfer timings, and the heap size to allocate is small, e.g. 128 kiB in the worst case for a transfer length of 65535 packets of 512 bytes. Tested on i.MX25, i.MX35 and i.MX51. In my test conditions, the speed gain was very significant (several times faster), which is really appreciable when accessing large files. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Marek Vasut <marex@denx.de> Cc: Ilya Yanok <ilya.yanok@cogentembedded.com> Cc: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Diffstat (limited to 'common/usb_storage.c')
0 files changed, 0 insertions, 0 deletions