[PATCH] MMC/SD SPI-mode driver

Adrian Chadd adrian at freebsd.org
Wed Apr 10 17:21:29 UTC 2013


On 10 April 2013 09:00, Ian Lepore <ian at freebsd.org> wrote:

> I don't understand how reading is not a generic spi command
> (presupposing the existance of the proposed changes that allow for a spi
> read without a concurrent write and vice versa).

No. Reading is an SPI method. But the SPI flash command for reading
data is different than other SPI commands.

The only thing we should be doing this for is SPI _flash reads_. Not
SPI reads. Just data area reads from a directly attached flash chip.

It's dirty or inefficient any way we do this. Either we special case
spibus drivers, or we expose a SPI read / SPI write 'command' that
knows it's not a generic SPI bus transaction but specifically a
read-this-flash-data-from-this-offset-and-length transaction. Or some
other kind of dirty hack.



Adrian


More information about the freebsd-mips mailing list