From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] NetLoop() code ordering
Date: Thu, 11 Dec 2008 09:53:38 -0800 [thread overview]
Message-ID: <494153A2.6030107@gmail.com> (raw)
In-Reply-To: <13F6A75BE29CE44F801B912901C3EF27F96F3B@wgv4.watchguardvideo.local>
Hi Curtis,
Please copy the U-boot mailing list on all correspondence.
Curtis Wald wrote:
>
> Hi,
>
> As you?re listed as the custodian for the U-Boot Network Library I had
> a question:
>
> Looking in net/net.c NetLoop() starting at line 322:
>
> eth_halt();
>
> #ifdef CONFIG_NET_MULTI
>
> eth_set_current();
>
> #endif
>
>
>
> Since eth_halt() makes calls to eth_current members, should the code
> flow be:
>
> #ifdef CONFIG_NET_MULTI
>
> eth_set_current();
>
> #endif
>
> eth_halt();
>
> Moving eth_halt() after the CONFIG_NET_MULTI stanza would setup
> eth_current before trying to use.
>
This initialization sequence is meant to ensure that everything's in a
happy, known state. Calling eth_halt() first ensures that whatever
device is currently being pointed to gets wound down in an orderly
manner. The subsequent call to eth_init() turns up the active interface
before using it.
>
> --
> Sincerely,
>
> *Curtis Wald*
> /Senior Software Engineer/
> WatchGuard Video
>
regards,
Ben
parent reply other threads:[~2008-12-11 17:53 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <13F6A75BE29CE44F801B912901C3EF27F96F3B@wgv4.watchguardvideo.local>]
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=494153A2.6030107@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox