mtd/drivers/mtd/nand diskonchip.c,1.26,1.27
dbrown at infradead.org
dbrown at infradead.org
Mon Jul 26 10:40:33 EDT 2004
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv10785
Modified Files:
diskonchip.c
Log Message:
Invalidate NAND pagebuf since we use it during Media Header scan.
Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- diskonchip.c 23 Jul 2004 14:23:50 -0000 1.26
+++ diskonchip.c 26 Jul 2004 14:40:30 -0000 1.27
@@ -699,6 +699,7 @@
int blocks, maxblocks;
int offs, numheaders;
+ this->pagebuf = -1;
if (!(numheaders=find_media_headers(mtd, buf, "ANAND", 1))) return 0;
//#ifdef CONFIG_MTD_DEBUG_VERBOSE
@@ -790,6 +791,7 @@
if (inftl_bbt_write)
end -= (INFTL_BBT_RESERVED_BLOCKS << this->phys_erase_shift);
+ this->pagebuf = -1;
if (!find_media_headers(mtd, buf, "BNAND", 0)) return 0;
doc->mh1_page = doc->mh0_page + (4096 >> this->page_shift);
More information about the linux-mtd-cvs
mailing list