devsdspi,socz80: fix write
authorAlan Cox <alan@linux.intel.com>
Sat, 31 Jan 2015 16:31:32 +0000 (16:31 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 31 Jan 2015 16:31:32 +0000 (16:31 +0000)
Kernel/platform-socz80/devsdspi.c

index 28591e5..8d75de0 100644 (file)
@@ -109,7 +109,7 @@ bool sd_spi_transmit_sector(uint8_t drive) __naked
     push af
     call nz,map_process_always
     ld a,#0xFF
-    ld bc, #SD_SPI_RX * 256
+    ld bc, #SD_SPI_TX
     otir
     otir
     jr xferout