* [U-Boot] NetLoop() code ordering
[not found] <13F6A75BE29CE44F801B912901C3EF27F96F3B@wgv4.watchguardvideo.local>
@ 2008-12-11 17:53 ` Ben Warren
0 siblings, 0 replies; only message in thread
From: Ben Warren @ 2008-12-11 17:53 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-11 17:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <13F6A75BE29CE44F801B912901C3EF27F96F3B@wgv4.watchguardvideo.local>
2008-12-11 17:53 ` [U-Boot] NetLoop() code ordering Ben Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox