[PATCH] [MTD] m25p80: memory accessor interface for SPI MTD driver

David Woodhouse dwmw2 at infradead.org
Sat Sep 19 14:36:21 EDT 2009


On Mon, 2009-08-03 at 18:24 -0700, David Brownell wrote:
> 
> If that's going to be possible, shouldn't it work for any
> MTD device?  And the lack of protection bothers me a bit
> more here than with EEPROMs and NVRAM, since it seems kind
> of easy to clobber UBI (or JFFS2 etc) data.  Maybe there
> should be a way to make jus a specific partition available
> this way?

Hrm, I'm unconvinced by the second version of the patch. I don't really
like adding this to the core MTD code, and I particularly dislike the
extra ->setup() method in struct mtd_partition.

Couldn't this be done as a wrapper round MTD devices, set up by the
board driver? Perhaps we could provide a template mtd_macc_{read,write}
function which board drivers can use, but I don't really like the
patches I've seen.

-- 
dwmw2




More information about the linux-mtd mailing list