[patch 2.6.27-rc2] MTD: make dataflash write-verify be optional

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Thu Aug 7 06:34:44 EDT 2008


David Brownell <david-b at pacbell.net> wrote:
> From: David Brownell <dbrownell at users.sourceforge.net>
> 
> This adds a WRITE_VERIFY Kconfig option to the DataFlash driver,
> closely mirroring the similar NAND and ONENAND options, giving
> an option to disable some code that's currently always enabled.
> 
> Removing this step probably saves a millisecond or so per page
> when writing data, which will add up quickly since these pages
> are small (the largest is 1 KByte).  It doesn't seem to add a
> lot in terms of reliability, and wouldn't detect errors which 
> crop up when transferring data to the on-chip SRAM buffer.
> 
> Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>

Sounds good to me. DataFlash speed is a bit of an issue, and if we
eventually manage to boost the SPI transfer speed, this thing might
turn out to be a bigger bottleneck than it currently is.

I suppose write verify might catch flash programming errors when the
flash is worn out, so it makes sense to keep it optional for users that
need to know early when this happens.

Acked-by: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>



More information about the linux-mtd mailing list