All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Clive Davies <cdavies@altera.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Intel protection register read
Date: Thu, 08 Nov 2001 15:02:18 +0000	[thread overview]
Message-ID: <24871.1005231738@redhat.com> (raw)
In-Reply-To: <82B1591A280FD411B91200D0B75B484A015F5D4D@sis-uk-msg01.altera.com>

cdavies@altera.com said:
>  Hmm, this is a problem. Am I correct in thinking that the code only
> reads the cfi tables from the first device and assumes that any
> additional devices are of the same type? (That's what it looks like to
> me) If so there is no way to read the protection register data from
> subsequent devices. 

You can do whatever you like in ->read_prot_reg(), so there's nothing that 
prevents you from doing this.

>  I reckon the best way to handle the multiple/interleaved chip
> configuration would be to concatenate all the protection registers
> together into one block. All the other interfaces I can think of would
> require a chip number to be passed in, which doesn't seem that nice to
> me. Does that sound reasonable?

Seems like a sane approach to me. We possibly need to couple it with a way
to query the size of protection register data available. 

> > Also, isn't it possible to _write_ to the user areas of the chips?
> 
> Yes it is, but I haven't implemented that because I don't need it. If
> adding writes is a condition for getting read functionality into cvs
> then I can do that too. 

Implementing it isn't absolutely necessary, although it would be nice. We 
do have to make sure that the framework is sane, and whoever _does_ finally 
implement writes isn't going to have to change stuff around for it, though.

--
dwmw2

  reply	other threads:[~2001-11-08 14:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-08 14:41 Intel protection register read Clive Davies
2001-11-08 15:02 ` David Woodhouse [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-08 11:50 Clive Davies
2001-11-08 12:10 ` 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=24871.1005231738@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=cdavies@altera.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 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.