diff options
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index ca9f150164..195a7c3661 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c | |||
@@ -46,11 +46,12 @@ | |||
46 | 46 | ||
47 | #define SECTOR_SIZE 512 | 47 | #define SECTOR_SIZE 512 |
48 | 48 | ||
49 | /* We can currently use up to 20k buffer size. More than that requires | 49 | /* the ARC driver currently supports up to 64k USB transfers. This is |
50 | * transfer chaining in the driver. Tests on sansa c200 show that the 16k | 50 | * enough for efficient mass storage support, as commonly host OSes |
51 | * limitation causes no more than 2% slowdown. | 51 | * don't do larger SCSI transfers anyway, so larger USB transfers |
52 | * wouldn't buy us anything. | ||
52 | */ | 53 | */ |
53 | #define BUFFER_SIZE 16384 | 54 | #define BUFFER_SIZE 65536 |
54 | 55 | ||
55 | /* bulk-only class specific requests */ | 56 | /* bulk-only class specific requests */ |
56 | #define USB_BULK_RESET_REQUEST 0xff | 57 | #define USB_BULK_RESET_REQUEST 0xff |