From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale
Date: Tue, 22 Jun 2010 12:10:28 -0700 [thread overview]
Message-ID: <4C210AA4.1020101@gmail.com> (raw)
In-Reply-To: <20100622181404.C9A1E1524ED@gemini.denx.de>
Wolfgang & Ilya,
Sorry for responding to both of you at the same time...
On 6/22/2010 11:14 AM, Wolfgang Denk wrote:
> Dear Ilya Yanok,
>
> In message<4C1F5A54.4050908@emcraft.com> you wrote:
>
>>
>>> Entry to MAINTAINERS missing.
>>>
>> Should I add you as a maintainer or myself?
>>
> You did the actual work...
>
>
>>>> +int board_eth_init(bd_t *bis)
>>>> +{
>>>> + cpu_eth_init(bis); /* Initialize TSECs first */
>>>>
>>>>
>>> I think it's wrong to ignore the return code here.
>>>
>> What makes you think so? What can we do with the return code here? Print
>> warning? If we return error from board_eth_init() calling code will call
>> cpu_eth_init() again which is useless as we have already called it.
>>
>
Yes, print a warning if < 0. As you've noticed, returning -1 wouldn't
be good. I'm not aware of a U-boot policy for handling hardware
problems other than printf.
>>>> + return pci_eth_init(bis);
>>>>
> My understanding is that pci_eth_init() and board_eth_init() return
> the number of NIC's found - should that number not include the number
> of successfully initialized TSECs?
>
>
Yes, please. Something like:
int board_eth_init(bd_t *bis)
{
int rc, num_if = 0;
if ((rc = cpu_eth_init(bis)) >= 0)
{
num_if += rc;
} else {
print error message
}
if ((rc = pci_eth_init(bis)) >= 0)
{
num_if += rc;
} else {
print error message
}
return num_if;
}
I'm working on changing net/eth.c to be less kludgy, but am having a
hard time setting up my test bed. Hopefully in the next few days.
> Best regards,
>
> Wolfgang Denk
>
>
regards,
Ben
next prev parent reply other threads:[~2010-06-22 19:10 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-20 17:32 [U-Boot] [PATCH 0/2] Support for MPC8308ERDB board Ilya Yanok
2010-06-20 17:32 ` [U-Boot] [PATCH 1/2] mpc8308: support for Freescale MPC8308 cpu Ilya Yanok
2010-06-21 7:44 ` Wolfgang Denk
2010-06-21 11:41 ` Ilya Yanok
2010-06-22 16:11 ` Wolfgang Denk
2010-06-28 12:44 ` Ilya Yanok
2010-07-09 21:13 ` Kim Phillips
2010-06-20 17:32 ` [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale Ilya Yanok
2010-06-21 7:44 ` Wolfgang Denk
2010-06-21 12:25 ` Ilya Yanok
2010-06-22 18:14 ` Wolfgang Denk
2010-06-22 19:10 ` Ben Warren [this message]
2010-06-23 12:01 ` Ilya Yanok
2010-06-23 11:57 ` Ilya Yanok
2010-06-23 0:17 ` Kim Phillips
2010-06-23 21:30 ` Ilya Yanok
2010-06-23 22:08 ` Wolfgang Denk
2010-06-24 15:59 ` Ilya Yanok
2010-06-24 18:00 ` Kim Phillips
2010-06-24 19:36 ` Ilya Yanok
2010-06-25 1:25 ` Aggrwal Poonam-B10812
[not found] ` <20100624190054.847e4452.kim.phillips@freescale.com>
2010-07-20 0:33 ` Kim Phillips
2010-07-20 5:46 ` Wolfgang Denk
2010-07-20 15:08 ` Ilya Yanok
2010-08-10 16:32 ` [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale (ICache issue) Ilya Yanok
2010-06-28 12:45 ` [U-Boot] [PATCH 2/2] MPC8308ERDB: minimal support for devboard from Freescale Ilya Yanok
2010-07-01 0:30 ` Kim Phillips
2010-07-01 9:13 ` Ilya Yanok
2010-07-07 16:16 ` [U-Boot] [PATCH 2/2] MPC8308RDB: " Ilya Yanok
2010-07-09 21:14 ` Kim Phillips
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=4C210AA4.1020101@gmail.com \
--to=biggerbadderben@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.