All pastes #916808 Raw Edit

Someone

public text v1 · immutable
#916808 ·published 2008-02-24 22:50 UTC
rendered paste body
Index: firmware/target/arm/sandisk/ata-c200_e200.c
===================================================================
--- firmware/target/arm/sandisk/ata-c200_e200.c (revision 16406)
+++ firmware/target/arm/sandisk/ata-c200_e200.c (working copy)
@@ -977,19 +977,19 @@
 
     for (buf = outbuf; buf <= buf_end;)
     {
+
+        //udelay(2); /* needed here (loop is too fast :-) */
+
+        copy_write_sectors(&buf); /* Copy one chunk of 16 words */
+         /* TODO: Switch bank if necessary */
         if (buf == buf_end)
         {
             /* Set SD_STATE_REG to PRG for the last buffer fill */
             SD_STATE_REG = PRG;
         }
-
-        udelay(2); /* needed here (loop is too fast :-) */
-
         /* Wait for the FIFO to empty */
         if (sd_poll_status(FIFO_EMPTY, 0x80000))
         {
-            copy_write_sectors(&buf); /* Copy one chunk of 16 words */
-            /* TODO: Switch bank if necessary */
             continue;
         }