[MTD] bugfix: DataFlash is not bit writable
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Dec 1 04:59:01 EST 2006
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=6c33cafc794d07c9254c160789120a0e98c088c9
Commit: 6c33cafc794d07c9254c160789120a0e98c088c9
Parent: c9ac5977299dd106ddb759e7e10035770dff185b
Author: Haavard Skinnemoen <hskinnemoen at atmel.com>
AuthorDate: Wed Nov 29 14:26:07 2006 +0100
Committer: Artem Bityutskiy <dedekind at infradead.org>
CommitDate: Fri Dec 1 10:30:45 2006 +0200
[MTD] bugfix: DataFlash is not bit writable
This patch fixes the
"jffs2_flash_writev(): Non-contiguous write to 00825300 with mtd_dataflash" bug.
Signed-off-by: Haavard Skinnemoen <hskinnemoen at atmel.com>
Signed-off-by: Artem Bityutskiy <dedekind at infradead.org>
---
drivers/mtd/devices/mtd_dataflash.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index 5db7160..10a4f4e 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -480,7 +480,7 @@ add_dataflash(struct spi_device *spi, ch
device->writesize = pagesize;
device->owner = THIS_MODULE;
device->type = MTD_DATAFLASH;
- device->flags = MTD_CAP_NORFLASH;
+ device->flags = MTD_WRITEABLE;
device->erase = dataflash_erase;
device->read = dataflash_read;
device->write = dataflash_write;
More information about the linux-mtd-cvs
mailing list