public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 3/3] arm, davinci: add support for am1808 based enbw_cmc board
Date: Tue, 29 Nov 2011 09:41:58 +0200	[thread overview]
Message-ID: <4ED48CC6.4060706@compulab.co.il> (raw)
In-Reply-To: <20111128152848.3B6B01ADFED7@gemini.denx.de>

On 11/28/11 17:28, Wolfgang Denk wrote:
> Dear Igor Grinberg,
> 
> it is really not necessary to quote 1300+ lines of unrelated code.
> Just provide sufficient context for your remarks.
> 
> In message <4ED373C6.5020906@compulab.co.il> you wrote:
>>
>>> +		ret = gpio_request(gpio, enbw_gpio_config[i].name);
>>> +		if (ret)
>>> +			printf("%s: Could not get %s gpio\n", __func__,
>>> +				enbw_gpio_config[i].name);
>>> +		else
>>
>> instead of having that else and adding another level of indentation below
>> you can just add continue;
> 
> Really?  There is no return in this error handling, so why do you
> think we should continue to run this code even after an error?

That's what the original code does, but a bit uglier...

Probably you are right, but I think it should be up to
the board maintainer to decide, because not all GPIOs are related
to each other and failing to request one of them, does not
have to affect the others and in that case, the error message
is printed, which should be enough to understand that there is
a problem.


-- 
Regards,
Igor.

  reply	other threads:[~2011-11-29  7:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28 10:44 [U-Boot] [PATCH v3 0/3] arm, davinci: add am1808 based enbw_cmc board Heiko Schocher
2011-11-28 10:44 ` [U-Boot] [PATCH v3 1/3] arm, davinci: move davinci_rtc struct to hardware.h Heiko Schocher
2011-11-28 10:44 ` [U-Boot] [PATCH v3 2/3] arm, davinci, da850: add uart1 tx rx pinmux config Heiko Schocher
2011-11-28 14:57   ` Tom Rini
2011-11-28 10:44 ` [U-Boot] [PATCH v3 3/3] arm, davinci: add support for am1808 based enbw_cmc board Heiko Schocher
2011-11-28 11:43   ` Igor Grinberg
2011-11-28 15:20     ` Heiko Schocher
2011-11-28 15:42       ` Wolfgang Denk
2011-11-29  6:56         ` Heiko Schocher
2011-11-28 15:28     ` Wolfgang Denk
2011-11-29  7:41       ` Igor Grinberg [this message]
2011-11-28 11:02 ` [U-Boot] [PATCH v3 0/3] arm, davinci: add " Igor Grinberg

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=4ED48CC6.4060706@compulab.co.il \
    --to=grinberg@compulab.co.il \
    --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