From: Heiko Schocher <heiko.schocher@invitel.hu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] powerpc: keymile: Add a check for the PIGGY debug board
Date: Mon, 17 Nov 2008 09:13:54 +0100 [thread overview]
Message-ID: <492127C2.9050906@invitel.hu> (raw)
In-Reply-To: <491C644B.3030508@gmail.com>
Hello Ben,
Ben Warren wrote:
> Heiko Schocher wrote:
>
>> Hello Ben
>>
>> Ben Warren wrote:
>>
>>
>>> Heiko Schocher wrote:
>>>
>>>
>>>
>>>> Check the presence of the PIGGY on the keymile boards mgcoge,
>>>> mgsuvd and kmeter1. If the PIGGY is not present, dont register
>>>> this Ethernet device.
>>>>
>>>> Signed-off-by: Heiko Schocher <hs@denx.de>
>>>> ---
>>>>
>>>>
>>>>
>>> This looks like useful stuff to have, but I'd prefer that you put the
>>> check logic in board_eth_init() rather than adding to the individual
>>> device drivers. I know the 8260 SCC driver is the older style, which
>>> precludes the use of board_eth_init, but I'll convert it if you're able
>>> to test.
>>>
>>>
>>>
>> Yes, I could test such a change for you, but hmm... I am not sure, if
>> board_eth_init () is the right place for my purpose.
>> I need for every Ethernet device a selection, if this device is present or
>> not.
>> Correct me if I am wrong, but it looks like board_eth_init ()
>> is not made for this purpose. (Ok, I can do a specific device init
>> in board_eth_init (), but then we must do something, that prevents
>> that the device is again initialized in eth_initialize () ...
>>
>>
>>
> board_eth_init() was introduced for exactly this sort of thing. Have a
> look at the net repo (I've sent a pull request to Wolfgang so the
> current changes will make it into the 12.2008 release). There aren't
> any device initializations left in eth_initialize(), so there's no issue
> of a device being initialized twice. The goal is for all devices to be
> started by cpu_eth_int() or board_eth_init().
>
Ahh... now I see it. I adjust my patch, thanks.
bye
Heiko
next prev parent reply other threads:[~2008-11-17 8:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-12 8:49 [U-Boot] [PATCH 4/5] powerpc: keymile: Add a check for the PIGGY debug board Heiko Schocher
2008-11-12 17:43 ` Ben Warren
2008-11-13 7:43 ` Heiko Schocher
2008-11-13 17:30 ` Ben Warren
2008-11-17 8:13 ` Heiko Schocher [this message]
2008-11-19 12:35 ` Gary Jennejohn
2008-11-19 13:03 ` Heiko Schocher
2008-11-19 18:14 ` Gary Jennejohn
2008-11-19 17:44 ` Ben Warren
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=492127C2.9050906@invitel.hu \
--to=heiko.schocher@invitel.hu \
--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.