public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Graeme Russ <graeme.russ@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mx31: Improve the handling of unidentified silicon version
Date: Wed, 15 Jun 2011 23:00:32 +1000	[thread overview]
Message-ID: <4DF8ACF0.1050405@gmail.com> (raw)
In-Reply-To: <20110615124912.7BD34138EF1F@gemini.denx.de>

On 15/06/11 22:49, Wolfgang Denk wrote:
> Dear Graeme Russ,
> 
> In message <4DF8A694.3030208@gmail.com> you wrote:
>>
>> But as Fabio has pointed out, the '2.0' in 'rev 2.0' is not srev - This
>> highlights the root of the problem - (srev == 0x20) != (rev 2.0)
> 
> But everybody who spends half a minute on the problem can easily
> determine this, without adding code for an exotic error case.

Only if they know '(unknown)' changes the meaning of 'rev' to 'srev' - And
that's the problem. If you don't have access to the code (or some fine
documentation) how will you know that 'rev 2.0 (unknown)' means you need to
search the SOC manual for 'srev == 0x20'

> It's not any new information that gets printed, it's just minimally
> differently formatted.

It is more information - In the known case, you are printing
mx31_cpu_type[i].v in the unknown case, you are printing srev

Now I personally think that in itself is a no-no, but fixing it would mean
doing something like:

CPU:   Freescale i.MX31 rev 2.0 (srev = 0x32) at 531 MHz.Reset cause: WDOG
for the known case

and

CPU:   Freescale i.MX31 unknown rev 0.0 (srev = 0x20) at 531 MHz.Reset
cause: WDOG

for the unknown case - Oops, we hit 80 characters :(

Regards,

Graeme

  reply	other threads:[~2011-06-15 13:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14 16:31 [U-Boot] [PATCH] mx31: Improve the handling of unidentified silicon version Fabio Estevam
2011-06-14 22:46 ` Graeme Russ
2011-06-15  5:28 ` Wolfgang Denk
2011-06-15  5:29 ` Stefano Babic
2011-06-15 11:50   ` Fabio Estevam
2011-06-15 12:08     ` Graeme Russ
2011-06-15 12:17       ` Fabio Estevam
2011-06-15 12:12     ` Wolfgang Denk
2011-06-15 12:33       ` Graeme Russ
2011-06-15 12:49         ` Wolfgang Denk
2011-06-15 13:00           ` Graeme Russ [this message]
2011-06-15 12:17     ` Stefano Babic
2011-06-15 12:47       ` Wolfgang Denk
2011-06-15 13:02         ` Stefano Babic

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=4DF8ACF0.1050405@gmail.com \
    --to=graeme.russ@gmail.com \
    --cc=u-boot@lists.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