public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] omap3evm: Clean-up EVM detection code.
Date: Thu, 02 Dec 2010 12:56:27 +0100	[thread overview]
Message-ID: <4CF7896B.5090007@free.fr> (raw)
In-Reply-To: <20101202113726.2C683EA6600@gemini.denx.de>

Le 02/12/2010 12:37, Wolfgang Denk a ?crit :
> Dear Sanjeev Premi,
>
> In message<1291288812-12653-1-git-send-email-premi@ti.com>  you wrote:
>> This patch does following changes:
>>    * Change the type (u8 ->  int) for omap3_evm_version.
>>    * Introduce an 'undefined' board revision for init
>>      value.
>>    * Use of #define instead of magic numbers
>>
>> Signed-off-by: Sanjeev Premi<premi@ti.com>
>> ---
>>   board/ti/evm/evm.c |   39 +++++++++++++++++++++++----------------
>>   board/ti/evm/evm.h |   17 +++++++----------
>>   2 files changed, 30 insertions(+), 26 deletions(-)
>>
>> diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c
>> index 09d14f7..8d9ce73 100644
>> --- a/board/ti/evm/evm.c
>> +++ b/board/ti/evm/evm.c
>> @@ -37,36 +37,43 @@
>>   #include<asm/mach-types.h>
>>   #include "evm.h"
>>
>> -static u8 omap3_evm_version;
>> +static int omap3_evm_version = OMAP3EVM_BOARD_UNDEF;
> ...
>> +#define OMAP3EVM_BOARD_UNDEF	-1	/* EVM revision not detected */
>
> Sorry, but I will not accept this patch.
>
> The only purpose of this initialization with a non-zero value is to
> paper over a problem.  As a result, the problem will be left unsolved,
> so it bites us again elsewhere, and we increase the memory footprint
> of the U-Boot image without need.
>
> NAK.

Note that initialization should be unnecessary if the static variable is 
int rather than u8.

> Best regards,
>
> Wolfgang Denk

Amicalement,
-- 
Albert.

  reply	other threads:[~2010-12-02 11:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-02 11:20 [U-Boot] [PATCH] omap3evm: Clean-up EVM detection code Sanjeev Premi
2010-12-02 11:37 ` Wolfgang Denk
2010-12-02 11:56   ` Albert ARIBAUD [this message]
2010-12-02 12:01     ` Wolfgang Denk
2010-12-02 12:33       ` Albert ARIBAUD
2010-12-02 13:58         ` Wolfgang Denk
2010-12-02 16:23           ` Albert ARIBAUD
2010-12-02 18:51             ` Wolfgang Denk
2010-12-02 19:32               ` Albert ARIBAUD
2010-12-02 13:30   ` Premi, Sanjeev

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=4CF7896B.5090007@free.fr \
    --to=albert.aribaud@free.fr \
    --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