From: Todd Poynor <tpoynor@mvista.com>
To: linux-mtd@lists.infradead.org
Subject: Supporting flash that is locked by default
Date: Fri, 24 Sep 2004 18:23:35 -0700 [thread overview]
Message-ID: <4154C897.3030008@mvista.com> (raw)
Various flash chips may be locked (at a chip or block level) at power-on
(perhaps depending on the board wiring), requiring an unlock before
writing to the device. It doesn't seem unreasonable to require one to
run flash_unlock on appropriate partitions before writing to the device,
at least in the case of initially mounting filesystems during system
startup. Platforms that power-cycle the device during a suspend/resume
make this a little more complicated, since there's not really a standard
way to insert the necessary flash_unlock commands into the system resume
sequence, especially for a writeable root filesystem. (For example,
the Intel XScale PXA27x uses K3 StrataFlash, which powers up with all
blocks locked and power-cycles the chip on suspend.)
This could all be handled inside the kernel, unlocking blocks as written
to (if the block has not been explicitly locked). But keeping track of
which blocks are supposed to be unlockable is a messy business, and
could fairly be accused of placing intelligence or policy in the kernel
that is better left to userspace. I don't, however, have an easy answer
for how to handle the suspend/resume case. The embedded engineers I've
talked to felt this was a hardware detail the kernel should take care of
for them, and it might not be that bad of an idea to have the kernel
restore the flash to pre-suspend state by keeping track of
previously-unlocked blocks.
So I thought I'd ask whether an architectural direction for linux-mtd
has been set in this regard, or whether anybody has an opinion on this.
Thanks for any insight you can add,
--
Todd Poynor
MontaVista Software
next reply other threads:[~2004-09-25 1:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-25 1:23 Todd Poynor [this message]
2004-09-25 2:18 ` Supporting flash that is locked by default Christopher Hoover
2004-09-25 10:33 ` David Woodhouse
2004-09-28 23:43 ` Todd Poynor
2004-09-29 0:57 ` Nicolas Pitre
2004-09-29 2:00 ` Todd Poynor
2004-10-08 1:34 ` Todd Poynor
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=4154C897.3030008@mvista.com \
--to=tpoynor@mvista.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