public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Jonas Holmberg <jonas.holmberg@axis.com>
Cc: mtd@infradead.org
Subject: Re: Problems with cfi_cmdset_0002.c
Date: Thu, 15 Feb 2001 11:10:47 +0000	[thread overview]
Message-ID: <30024.982235447@redhat.com> (raw)
In-Reply-To: <E6FE4E054F02D511818E00025558B61D429E20@cluster01.axis.se>


jonas.holmberg@axis.com said:
>  I cannot find any info on relationship between CFI version numbers
> and bootloc. I looked through the CFI 1.0 and 1.1 spec, but found
> nothing. Does anybody know? 

Only AMD. My datasheet for the AM29LV320D says the vendor-specific extended
query table version is 1.1 and includes bootloc (AMD pub #23579 Rev A, p23).
If the datasheets for other chips say v1.0 and omit bootloc, then that's
good enough, isn't it?

> Otherwise my suggestion is still "if (!bootloc)" until proven wrong. I
> think it's safer than "cfi_version < 1.1". What do you think?

That means you're depending on the contents of a byte which is not defined. 
If it's off the end of the v1.0 table, it doesn't have to be zero in all 
cases. It's theoretically safer to look for the version number first, and 
only read bootloc if it's at least v1.1.

But I don't care enough to argue :) As long as it works, it's OK by me. 

--
dwmw2




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

  reply	other threads:[~2001-02-15 11:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-15 11:01 Problems with cfi_cmdset_0002.c Jonas Holmberg
2001-02-15 11:10 ` David Woodhouse [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-02-15 15:49 Jonas Holmberg
2001-02-15 13:02 Jonas Holmberg
2001-02-15 12:44 Jonas Holmberg
2001-02-15 12:56 ` David Woodhouse
2001-02-14 15:41 Jonas Holmberg
2001-02-14 15:45 ` David Woodhouse
2001-02-13 12:53 Jamey Hicks
2001-02-13 13:31 ` David Woodhouse
2001-02-13 10:04 Jonas Holmberg
2001-02-13 10:15 ` David Woodhouse
2001-02-13  8:59 Jonas Holmberg
2001-02-13  8:31 Jonas Holmberg
2001-02-13  8:30 ` Johan Adolfsson
2001-02-13  9:17 ` David Woodhouse
2001-02-13  9:27   ` Johan Adolfsson
2001-02-12 16:31 Jonas Holmberg
2001-02-12 16:36 ` David Woodhouse
2001-02-12 17:14   ` Johan Adolfsson
2001-02-12 17:24     ` David Woodhouse
2001-02-12 17:33       ` Johan Adolfsson
2001-02-12 12:08 Jonas Holmberg
2001-02-12 13:24 ` 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=30024.982235447@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=jonas.holmberg@axis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox