summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-08-28 09:02:28 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-08-28 09:02:28 +0000
commit1f7b22bd373904c1c8a753d4aaed8e0655b4fb5a (patch)
tree372753750dc6c0cc3986a92534e37e24e7b8969a
parentb2655cc55922d834224ad0a36f45b37fac9dc925 (diff)
Make usb_storage work on all targets again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18357 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/usbstack/usb_storage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index e6fd7a70ac..6d964f4622 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -382,6 +382,7 @@ void usb_storage_init_connection(void)
static unsigned char _transfer_buffer[BUFFER_SIZE*2]
USBDEVBSS_ATTR __attribute__((aligned(32)));
tb.transfer_buffer = (void *)_transfer_buffer;
+ cached_transfer_buffer = tb.transfer_buffer;
#else
/* TODO : check if bufsize is at least 32K ? */
size_t bufsize;
@@ -432,7 +433,9 @@ void usb_storage_transfer_complete(int ep,bool in,int status,int length)
/* Now write the data that just came in, while the host is
sending the next bit */
+#if CONFIG_CPU == IMX31L || CONFIG_USBOTG == USBOTG_ISP1583
invalidate_icache();
+#endif
int result = ata_write_sectors(IF_MV2(cur_cmd.lun,)
cur_cmd.sector,
MIN(BUFFER_SIZE/SECTOR_SIZE,