From 0ece30a72612bbb8267390bce93076a398c8095f Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 29 Mar 2009 19:56:21 +0000 Subject: Commit FS#10015 - Use chained transfer descriptor to speed up USB transfers on PP and iMX31 (not exactly the same. This one actually works) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20570 a1c6a512-1295-4272-9138-f99709370657 --- firmware/usbstack/usb_storage.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'firmware/usbstack') diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index ca9f150..195a7c3 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -46,11 +46,12 @@ #define SECTOR_SIZE 512 -/* We can currently use up to 20k buffer size. More than that requires - * transfer chaining in the driver. Tests on sansa c200 show that the 16k - * limitation causes no more than 2% slowdown. +/* the ARC driver currently supports up to 64k USB transfers. This is + * enough for efficient mass storage support, as commonly host OSes + * don't do larger SCSI transfers anyway, so larger USB transfers + * wouldn't buy us anything. */ -#define BUFFER_SIZE 16384 +#define BUFFER_SIZE 65536 /* bulk-only class specific requests */ #define USB_BULK_RESET_REQUEST 0xff -- cgit v1.1