summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-09-02 10:50:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-09-05 08:53:24 +0200
commitfaf2ec64e7442fda2e2330c0df047bcd902c5927 (patch)
treedfbae594b963acda405764d18829b7da3b192cb0 /defaultenv
parenta1109d78ddcb3a070acfdb1c9567a8d3a7cbca6a (diff)
downloadbarebox-faf2ec64e7442fda2e2330c0df047bcd902c5927.tar.gz
mci: mmci: Fix read FIFO handling
According to the Linux kernel and the qemu code, the MMCIFIFOCNT contains the remaining number of words to read, excluding those that are already in the FIFO. So the current number of bytes in the FIFO is host_remain - (readl(base + MMCIFIFOCNT) << 2). Also writing to MMCIDATACTRL will reset the read counter. As a result, MCI_DATABLOCKEND is never set and read_bytes() waits forever. With this change, SD-Card support on qemu vexpress works correctly. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
0 files changed, 0 insertions, 0 deletions