All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alice Hennessy <ahennessy@mvista.com>
To: mtd@infradead.org
Cc: ahennessy@mvista.com
Subject: LOCK and UNLOCK functions
Date: Thu, 11 Jan 2001 11:41:39 -0800	[thread overview]
Message-ID: <3A5E0C73.887353C5@mvista.com> (raw)

Hi,

I need to implement the lock and unlock functions in cfi_cmdset_0001.c.
for STRATA chips.
Most of the hooks are already there in mtdchar.c and mtdpart.c for these
2 functions.
I do need to fix the if statements in mtdpart.c that doesn't set the
slave->mtd.lock
and slave->mtd.unlock correctly.
But other than that, I have a few questions:

1. It doesn't appear to me that suspend affects the locking and
unlocking flowcharts -
only program and erase.   Is this a correct assumption?

2. The mtdchar.c ioctl call for MEMUNLOCK  passes the start and len
addresses.  The
unlock for the STRATA clears all the lock bits.  So I intend to include
logic to reinstate the
locked bits that are outside the desired range.   Sound reasonable?

Alice



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

             reply	other threads:[~2001-01-11 19:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-11 19:41 Alice Hennessy [this message]
2001-01-11 20:03 ` LOCK and UNLOCK functions David Woodhouse
2001-01-11 20:38   ` Alice Hennessy
2001-01-11 20:51     ` Alice Hennessy
2001-01-11 22:43     ` 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=3A5E0C73.887353C5@mvista.com \
    --to=ahennessy@mvista.com \
    --cc=mtd@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.