[JFFS2] Teach JFFS2 about Sibley flash
Intels Sibley flash needs JFFS2 write buffer functionality Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Thomas Gleixner
parent
e102d54abf
commit
59da721a22
+14
-2
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* For licensing information, see the file 'LICENCE' in this directory.
|
||||
*
|
||||
* $Id: fs.c,v 1.61 2005/07/24 15:29:56 dedekind Exp $
|
||||
* $Id: fs.c,v 1.62 2005/08/06 04:51:30 nico Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -664,7 +664,14 @@ static int jffs2_flash_setup(struct jffs2_sb_info *c) {
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/* and Intel "Sibley" flash */
|
||||
if (jffs2_nor_wbuf_flash(c)) {
|
||||
ret = jffs2_nor_wbuf_flash_setup(c);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -683,4 +690,9 @@ void jffs2_flash_cleanup(struct jffs2_sb_info *c) {
|
||||
if (jffs2_dataflash(c)) {
|
||||
jffs2_dataflash_cleanup(c);
|
||||
}
|
||||
|
||||
/* and Intel "Sibley" flash */
|
||||
if (jffs2_nor_wbuf_flash(c)) {
|
||||
jffs2_nor_wbuf_flash_cleanup(c);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user