public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] JFFS on an MTDRAM device
@ 2002-10-30 12:33 Ian Campbell
  0 siblings, 0 replies; only message in thread
From: Ian Campbell @ 2002-10-30 12:33 UTC (permalink / raw)
  To: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 840 bytes --]

Hi,

I needed the attached patch to allow a JFFS2 filesystem to be mounted
using an MTDRAM driver (actually an SRAM chip).

Without it I get lots of warnings in jffs2_erase_callback: "Erase at
0x%08x finished, but state != MTD_ERASE_DONE. State is 0x%x instead."

Cheers,
Ian.

-- 
Ian Campbell
Design Engineer

Arcom Control Systems Ltd,
Clifton Road,
Cambridge CB1 7EA
United Kingdom

Tel: +44 (0)1223 403465
E-Mail: icampbell@arcomcontrols.com
Web: http://www.arcomcontrols.com


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

[-- Attachment #2: mtd.ram.erase.patch --]
[-- Type: text/plain, Size: 588 bytes --]

? mtd.ram.erase.patch
? drivers/mtd/chips/.map_ram.c.swp
Index: drivers/mtd/chips/map_ram.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/map_ram.c,v
retrieving revision 1.14
diff -u -r1.14 map_ram.c
--- drivers/mtd/chips/map_ram.c	2 Oct 2001 15:05:12 -0000	1.14
+++ drivers/mtd/chips/map_ram.c	30 Oct 2002 12:20:06 -0000
@@ -107,6 +107,8 @@
 	for (i=0; i<instr->len; i++)
 		map->write8(map, 0xFF, instr->addr + i);
 
+	instr->state = MTD_ERASE_DONE;
+
 	if (instr->callback)
 		instr->callback(instr);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-30 12:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-30 12:33 [PATCH] JFFS on an MTDRAM device Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox