[PATCH 1/3] spi/qspi: Add memory mapped read support.
Peter Korsgaard
peter at korsgaard.com
Wed Oct 9 12:01:59 PDT 2013
>>>>> "Mark" == Mark Brown <broonie at kernel.org> writes:
Hi,
Mark> I'm not convinced that this is the most useful API, it sounds like the
Mark> hardware can "memory map" the entire flash chip so the whole SPI
Mark> framework seems like overhead.
Mark> It also seems seems like it's going to involve the CPU being
Mark> stalled waiting for reads to complete instead of asking the SPI
Mark> controller to DMA the data to RAM and allowing the CPU to get on
Mark> with other things - replacing the explicit transmission of
Mark> commands with memory to memory DMAs might be advantageous but
Mark> replacing DMA with memcpy() would need numbers to show that it
Mark> was a win.
Indeed. I can see how such a feature could be useful in E.G. a lowlevel
bootloader (because of simplicity), but am less convinced about it in
Linux where we could conceivable do something else useful while waiting
on the spi controller.
But if there's number to prove otherwise..
--
Bye, Peter Korsgaard
More information about the linux-mtd
mailing list