Fix the pesky write corruption bug in 4bit mode.
commitaa15100bd26d18ac13ccfb2d6d7e64fb52ef599a
authorranma <ranma@a1c6a512-1295-4272-9138-f99709370657>
Thu, 24 Jun 2010 18:57:11 +0000 (24 18:57 +0000)
committerranma <ranma@a1c6a512-1295-4272-9138-f99709370657>
Thu, 24 Jun 2010 18:57:11 +0000 (24 18:57 +0000)
treed5a55b345024858e99b6bd513fdc5e46ecdcc7ba
parentbfbbaf1413fa5485b9f19b91f76389faf562f5fc
Fix the pesky write corruption bug in 4bit mode.
On tx underruns, a write is aborted early, leaving the dma channel active.
We didn't explicitly disable it, so there were still 4 words in the dma
controller fifo, corrupting the retried write.

To chase this bug I added verify after write, if no one sees write errors in
the next week or so this can be removed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27113 a1c6a512-1295-4272-9138-f99709370657
firmware/target/arm/as3525/sd-as3525.c