public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Jason Chan <jason@emsoftltd.com>
To: "'linux-arm-kernel@lists.arm.linux.org.uk'"
	<linux-arm-kernel@lists.arm.linux.org.uk>,
	linux-mtd@lists.infradead.org
Subject: Need Some help to write NandFlash Driver
Date: Thu, 06 Jun 2002 10:35:20 +0800	[thread overview]
Message-ID: <3CFECA68.6060709@emsoftltd.com> (raw)

Dear all,
	I am currently implementing Samsung Nand-Flash Driver for edb7312 block on 2.4.18 kernel. I am seeking for suggestion on which method should be used to improve my nandflash driver.

It implement the Nand-Flash Driver as a block device currently.=20
When there are some "WRITE" request to write an sector, I will
1. Copy the content of the block into a buffer.
2. Update the content of the buffer of specific sector location.
3. Erase the block
4. Write the whole block back to the flash.

But I find that, when I write an whole block of buffer back to the flash, all the interrupt will be blocked during the operation. And that's cause problem of other drivers. And I want the interrupt can fully functional even when I writing flash.

Now I have following idea,
1. Not to disable interrupt when processing "WRITE" request. But how can I control the read/write operation so that I won't have some synchronization problem.

2. Use MTD Block device, I have do some initial port on that. I use MTD NandFlash support and port my own code there. I can use the "mtd-nand" char device to read/write the flash. But when I use the "mtd-block" block device to read to flash, it work fine. But it crash when I try to write to the block device. Is that the MTD block driver problem? Anyone has successful port Samsung nandflash to MTD block device.
 
3. Use JFFS2. It seems JFFS2 can support the NandFlash. Anyone have try that?
 
4. Use NTFL. But it only support DiskOnChip. Can this use Nandflash on this.

Any suggestion is welcome.


-- 
Best Regards,

Jason Chan
Emsoft Ltd.

             reply	other threads:[~2002-06-06  2:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-06  2:35 Jason Chan [this message]
2002-06-09 13:24 ` Need Some help to write NandFlash Driver Thomas Gleixner

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=3CFECA68.6060709@emsoftltd.com \
    --to=jason@emsoftltd.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --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