public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Tim Hockin <thockin@sun.com>
To: linux-mtd@lists.infradead.org
Subject: cfi_cmdset_0002 and writes
Date: Wed, 18 Jul 2001 14:58:25 -0700	[thread overview]
Message-ID: <3B560681.4D216FF3@sun.com> (raw)

ok, so I've got (in mylocal CVS, not checked in) some code that sets up our
flash ROM.  I have the MTD layer reading my device just fine.

What I DON'T have is writing working.

I don't know how the other devices supported by cfi_cmdset_0002 work, but
let me explain how our flash works.  I am hoping someone can then explain
to me how cfi_cmdset_0002 can work.

The flash can be erased by 64k blocks.  Since it is flash, you can only
reprogram '1' bits to '0' bits, and never vice versa.  What I don't find is
any hooks in cfi_cmdset_0002 to read a whole block, erase it, make changes
to the in-memory block and write it back to flash.

How/where does it do this?  Or are all the other chips that use this cmdset
more flexible?  Obviosuly, we don't want to do that for every write.


In my previous incarnation of a flashrom driver, the driver created the in
buffer shadow whenever a write occurred to a block. Then, on fsync() would
flush all the block back to flash.

Secondly, the specs call for specific spin checks (checkin the high bot of
each byte) rather than wait-times.

Is the existing model going to work for me at all?

feeling frustrated,
Tim


-- 
Tim Hockin
Systems Software Engineer
Sun Microsystems, Cobalt Server Appliances
thockin@sun.com

             reply	other threads:[~2001-07-18 21:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-18 21:58 Tim Hockin [this message]
2001-07-18 22:04 ` cfi_cmdset_0002 and writes David Woodhouse
2001-07-18 22:29   ` Tim Hockin
2001-07-18 22:42     ` David Woodhouse
2001-07-19 17:44     ` Bjorn Wesen
2001-07-18 22:12 ` David Woodhouse

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=3B560681.4D216FF3@sun.com \
    --to=thockin@sun.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