[openfirmware] r864 - dev/mmc/sdhci
svn at openfirmware.info
svn at openfirmware.info
Thu Jul 31 01:49:08 CEST 2008
Author: wmb
Date: 2008-07-31 01:49:08 +0200 (Thu, 31 Jul 2008)
New Revision: 864
Modified:
dev/mmc/sdhci/sdhci.fth
Log:
OLPC trac 7725 - SDHCI driver was doing DMA to a non-DMA buffer,
sometimes causing command and/or data timeouts.
Modified: dev/mmc/sdhci/sdhci.fth
===================================================================
--- dev/mmc/sdhci/sdhci.fth 2008-07-30 10:19:38 UTC (rev 863)
+++ dev/mmc/sdhci/sdhci.fth 2008-07-30 23:49:08 UTC (rev 864)
@@ -322,7 +322,7 @@
\ h# 10 cl@ 8 lshift r> 3 la+ l!
;
-d# 64 instance buffer: scratch-buf
+0 value scratch-buf
0 instance value rca
d# 16 instance buffer: cid
@@ -617,6 +617,7 @@
open-count 0= if
map-regs
setup-host
+ d# 64 " dma-alloc" $call-parent to scratch-buf
then
open-count 1+ to open-count
true
@@ -626,6 +627,7 @@
open-count 1 = if
intstat-on
wait-write-done
+ scratch-buf d# 64 " dma-free" $call-parent
card-clock-off
card-power-off
unmap-regs
More information about the openfirmware
mailing list