diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-02-24 18:30:32 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-02-24 18:30:32 +0000 |
commit | 80410f21b96714f220cdcc8c3c995e91f4e209b8 (patch) | |
tree | aeb9af42bfdb317d13e2dcaddc85e8641104297f /firmware/usbstack/usb_storage.c | |
parent | 22b9eb424503c14799bf21f0a1bcd990ccb91a4b (diff) | |
download | rockbox-80410f21b96714f220cdcc8c3c995e91f4e209b8.tar.gz rockbox-80410f21b96714f220cdcc8c3c995e91f4e209b8.zip |
remove SERIALIZE_WRITES. The reason for it (the SD bug) is gone, so there's no point in keeping this
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20098 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 9be2d5d241..2080865e11 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -34,14 +34,6 @@ #ifdef USB_STORAGE -/* The SD card driver on Sansa c200 and e200 can cause write corruption, - * often triggered by simultaneous USB activity. This can be largely avoided - * by not overlapping storage_write_sector() with USB transfers. This does reduce - * write performance, so we only do it for the affected DAPs - */ -#if (CONFIG_STORAGE & STORAGE_SD) -#define SERIALIZE_WRITES -#endif /* Enable the following define to export only the SD card slot. This * is useful for USBCV MSC tests, as those are destructive. * This won't work right if the device doesn't have a card slot. @@ -470,13 +462,11 @@ void usb_storage_transfer_complete(int ep,int dir,int status,int length) MIN(cur_cmd.count,BUFFER_SIZE/SECTOR_SIZE); int next_select = !cur_cmd.data_select; -#ifndef SERIALIZE_WRITES if(next_count!=0) { /* Ask the host to send more, to the other buffer */ receive_block_data(cur_cmd.data[next_select], MIN(BUFFER_SIZE,next_count*SECTOR_SIZE)); } -#endif /* Now write the data that just came in, while the host is sending the next bit */ @@ -498,13 +488,6 @@ void usb_storage_transfer_complete(int ep,int dir,int status,int length) break; } #endif -#ifdef SERIALIZE_WRITES - if(next_count!=0) { - /* Ask the host to send more, to the other buffer */ - receive_block_data(cur_cmd.data[next_select], - MIN(BUFFER_SIZE,next_count*SECTOR_SIZE)); - } -#endif if(next_count==0) { send_csw(UMS_STATUS_GOOD); |