public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Ian Campbell <icampbell@arcomcontrols.com>
To: Linux MTD Mailing List <linux-mtd@lists.infradead.org>
Subject: [PATCH] small fix for drivers/mtd/chips/map_ram.c in 2.4
Date: 12 Nov 2002 10:22:03 +0000	[thread overview]
Message-ID: <1037096523.26466.26.camel@LinuxDev> (raw)

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

Hi, 

The attached one-liner was necessary to allow me to mount a JFFS2 file
system using an MTD device based on the map_ram map driver. 

It sets the state to MTD_ERASE_DONE in mapram_erase, if memory serves (I
did it a couple of weeks ago) not having this was causing badness in
jffs2_erase_callback.

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.map_ram.patch --]
[-- Type: text/plain, Size: 289 bytes --]

--- kernel-2.4.18.orig/drivers/mtd/chips/map_ram.c
+++ kernel-2.4.18/drivers/mtd/chips/map_ram.c
@@ -107,5 +107,7 @@
 	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);

                 reply	other threads:[~2002-11-12  9:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1037096523.26466.26.camel@LinuxDev \
    --to=icampbell@arcomcontrols.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox