From: Marc Oscar Singer <elf@synapse.com>
To: Chris Moore <moore@free.fr>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] Revised the detection for broken boot-region detection. MACRONIX parts have a custom implementation of the fixup. AMD implemtation restore to original version that has worked fine since 2001.
Date: Thu, 18 Dec 2008 08:44:24 -0800 [thread overview]
Message-ID: <494A7DE8.6010404@synapse.com> (raw)
In-Reply-To: <4949C730.9050906@free.fr>
IMHO, it would be better to leave the AMD fixup code as it was. It
works fine for the AMD parts. My comment about
changing what was already working has to do with the fact that editing
the AMD fixup code is modifying working code.
The number of bytes saved because we don't have to check bit 7 twice in
the default is nominal. The fixup table
was changed to call the same function for two different manufacturers,
so we had to add an explicit check for the manufacturer
in the fixup routine. Why bother? The AMD fixup is stable and
working. As far as I know, AMD isn't making more NOR flash,
so we are in a good position for *not* breaking support for AMD parts.
So, instead, lets write a new fixup for the Macronix part. Yes, we have
to duplicate the bit 7 test, but the routine, overall, can
be a straightforward switch on the exceptional IDs with the default
still checking bit 7.
So, the principles are
1) leave working code alone.
2) use existing mechanisms as they were intended (i.e. the fixup table
that selects by manufacturer)
If you agree, then you should be able to make your changes on top of the
patch that I already submitted.
Cheers.
--
Marc Singer
Bureau of Gizmology
elf@synapse.com
t. 206.832.3712
800.682.0581
f. 206.381.0899
Synapse Product Development, LLC.
1511 6th Avenue, 4th floor
Seattle, WA 98101
next prev parent reply other threads:[~2008-12-18 16:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-16 20:56 [PATCH] Revised the detection for broken boot-region detection. MACRONIX parts have a custom implementation of the fixup. AMD implemtation restore to original version that has worked fine since 2001 Marc Singer
2008-12-17 21:50 ` Chris Moore
2008-12-18 0:56 ` Marc Oscar Singer
2008-12-18 3:44 ` Chris Moore
2008-12-18 16:44 ` Marc Oscar Singer [this message]
2008-12-19 6:02 ` Chris Moore
2008-12-19 6:23 ` Chris Moore
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=494A7DE8.6010404@synapse.com \
--to=elf@synapse.com \
--cc=linux-mtd@lists.infradead.org \
--cc=moore@free.fr \
/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