[PATCH] mmci: fixup broken_blockend variant patch v2

Linus Walleij linus.ml.walleij at gmail.com
Thu Jan 27 09:16:51 EST 2011


2011/1/27 Russell King - ARM Linux <linux at arm.linux.org.uk>:

> Something occurs to me - isn't DATACNT a byte counter rather than a word
> counter?

It is.

> I think that's something which needs to be confirmed.  The TRM
> is a little confusing: (...)
>
> I think this requires some experimentation...

All experiments I've done by ejecting the card while reading seem to
have the transfer end on thing like 0xc00, 0x800, 0x1000 etc, all
even multiples of 512 bytes.

I have also read the VHDL code, which is shows it is clearly
a byte counter.

Found another bug as well when calculating the number of bytes
left, so sent off a patch.

Linus Walleij



More information about the linux-arm-kernel mailing list