X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=mtdemul%2Fnandemul2k.c;h=bcbf16ad1c9c6df641ca17beada59f27d3dcccdc;hb=bcac5908f05d38711a5db79da4f2bae1eea3abba;hp=6f10746e3e433f0752c7f5e39b240f517924e841;hpb=300a106a291d9d32a71a6dee90b659f46f1cc804;p=yaffs2.git diff --git a/mtdemul/nandemul2k.c b/mtdemul/nandemul2k.c index 6f10746..bcbf16a 100644 --- a/mtdemul/nandemul2k.c +++ b/mtdemul/nandemul2k.c @@ -1,7 +1,7 @@ /* - * YAFFS: Yet another FFS. A NAND-flash specific file system. + * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002 Aleph One Ltd. + * Copyright (C) 2002-2007 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -9,8 +9,9 @@ * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. - * - * + */ + +/* * This version hacked for emulating 2kpage NAND for YAFFS2 testing. */ @@ -567,7 +568,9 @@ static int nand_erase (struct mtd_info *mtd, struct erase_info *instr) block++; } + instr->state = MTD_ERASE_DONE;  * change state to ERASE_DONE */ + instr->callback(instr);  * wake up */ return 0;