[PATCH] MMC/SD SPI-mode driver
Adrian Chadd
adrian at freebsd.org
Mon Apr 8 18:32:12 UTC 2013
On 8 April 2013 05:33, Aleksandr Rybalko <ray at freebsd.org> wrote:
>> That way both can occur independently.
>
> Agree, but you forget to say about lock/unlock :)
Yup, locking is implied. :-)
I don't have any problem with extending the bus with this particular
method hack to allow the driver to implement an alternate read method.
Anyone else?
I'm happy to review a patch against -HEAD that does this:
* add that new method, same as zrouter
* add the code to the flash driver, same as zrouter
* add spi locking in ar71xx_spi to ensure that entire transfers are
done inside a lock;
* for that copy read method, have it lock the device, put it back into
mapped mode, do the copy, put it into SPI mode, unlock the device.
I think that should make it kick ass.
Any takers? :)
adrian
More information about the freebsd-mips
mailing list