From: "Robert P. J. Day" <rpjday@mindspring.com>
To: Wolfgang Denk <wd@denx.de>
Cc: Embedded PPC Linux list <linuxppc-embedded@ozlabs.org>
Subject: Re: [PATCH] first in a series to enhance microcode patches
Date: Wed, 6 Oct 2004 09:30:51 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.60.0410060926320.8416@dell.enoriver.com> (raw)
In-Reply-To: <20041005202017.6DC7BC1430@atlas.denx.de>
On Tue, 5 Oct 2004, Wolfgang Denk wrote:
> In message <Pine.LNX.4.60.0410051543230.3549@localhost.localdomain> you wrote:
>>
>> that's definitely understandable. it's just potentially confusing to
>> have a structure's reserved chunks declared as some combination of
>> uchar, ushort, uint and/or ulong, when it's obviously more
>> comprehensible to make each reserved chunk a standard array of char
>> whose size is obvious at a glance.
>
> Actually this might not be confusing, but making the code easier to
> read, to understand, and maybe one day to extend - remember that
> these struct definitions are direct translations of Motorola provided
> documentation - and I tend to believe that the chip manufacturer
> knows more about the internals of his chips than you or me. One day,
> a "uint reserved_xxx;" may turn into a new, shiny 32 bit register.
from "Documentation/SubmittingPatches", at the very end:
4) Don't over-design.
Don't try to anticipate nebulous future cases which may or may not
be useful: "Make it as simple as you can, and no simpler"
it seems that, if that's good advice for patches, it should be good
advice for the code proper. i do appreciate your point, but if at
some point, a shiny new register suddenly appears, that strikes me as
a significant enough change that mods to the header file shouldn't be
considered a big deal.
anyway, just my $0.02.
rday
next prev parent reply other threads:[~2004-10-06 13:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 16:32 [PATCH] first in a series to enhance microcode patches Robert P. J. Day
2004-10-05 19:20 ` Dan Malek
2004-10-05 19:29 ` Tom Rini
2004-10-05 20:00 ` Robert P. J. Day
2004-10-05 20:53 ` Tom Rini
2004-10-05 19:52 ` Robert P. J. Day
2004-10-05 20:20 ` Wolfgang Denk
2004-10-06 13:30 ` Robert P. J. Day [this message]
2004-10-06 14:05 ` Mark Chambers
2004-10-06 14:01 ` Robert P. J. Day
-- strict thread matches above, loose matches on Subject: below --
2004-10-05 17:32 Robert P. J. Day
2004-10-07 15:38 ` Tom Rini
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=Pine.LNX.4.60.0410060926320.8416@dell.enoriver.com \
--to=rpjday@mindspring.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=wd@denx.de \
/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;
as well as URLs for NNTP newsgroup(s).