MTD: Correct typo "MTD_DATAFLASH_VERIFY_WRITE".
Subsystems (2)
PATCH 1/1 MTD: Correct typo "MTD_DATAFLASH_VERIFY_WRITE".
Fix the misspelling to match the actual config variable defined in drivers/mtd/devi ces/Kconfig:
config MTD_DATAFLASH_WRITE_VERIFY
bool "Verify DataFlash page writes"
depends on MTD_DATAFLASH
---
you know, there's a *reason* i keep reporting these anomalies...
drivers/char/vr41xx_giu.c deleted +0 -0
drivers/mtd/devices/mtd_dataflash.c +2 -2
@@ -401,7 +401,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, (void )dataflash_waitready (priv->spi); -#ifdef CONFIG_MTD_DATAFLASH_VERIFY_WRITE +#ifdef CONFIG_MTD_DATAFLASH_WRITE_VERIFY /* (3) Compare to Buffer1 */ addr = pageaddr << priv->page_offset;
@@ -430,7 +430,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, } else status =0 ; -#endif /* CONFIG_MTD_DATAFLASH_VERIFY_WRITE */ +#endif /* CONFIG_MTD_DATAFLASH_WRITE_VERIFY */ remaining = remaining - writelen; pageaddr++;
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Annoying Kernel Pedantry.
Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday
"Kernel Newbie Corner" column @ linux.com: http://cli.gs/WG6WYX
========================================================================
Seems correct to me, I'll put it to l2-mtd-2.6.git, thanks.
CCint David who seem to introduced this in the following commit:
commit 8c64038e4c077b2b37c6b27d0c40c77a3ddfaeef
Author: David Brownell <[email protected]> Date: Wed Aug 6 21:55:14 2008 -0700
[MTD] make dataflash write-verify be optional
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 KiB). 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.
Quoted 53 lines · Robert P. J. Day
Fix the misspelling to match the actual config variable defined in
drivers/mtd/devices/Kconfig:config
MTD_DATAFLASH_WRITE_VERIFY
bool "Verify DataFlash page writes"
depends onMTD_DATAFLASHSigned-off-by Robert P. J. Day<[email protected]>---
you know, there's a *reason* i keep reporting these anomalies...
drivers/char/vr41xx_giu.c deleted +0
-0drivers/mtd/devices/mtd_dataflash.c +2
-2@@ -401,7 +401,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, (void )dataflash_waitready (priv->spi); -#ifdef CONFIG_MTD_DATAFLASH_VERIFY_WRITE +#ifdef CONFIG_MTD_DATAFLASH_WRITE_VERIFY /* (3) Compare to Buffer1 */ addr = pageaddr<< priv->page_offset;@@ -430,7 +430,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, } else status =0 ; -#endif /* CONFIG_MTD_DATAFLASH_VERIFY_WRITE */ +#endif /* CONFIG_MTD_DATAFLASH_WRITE_VERIFY */ remaining = remaining - writelen; pageaddr++;========================================================================
Robert P. J. Day Waterloo, Ontario, CANADALinux Consulting, Training and Annoying Kernel Pedantry.
Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday"Kernel Newbie Corner" column @ linux.com: http://cli.gs/WG6WYX
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)