[U-Boot] [PATCH] net/eth.c: bug-fix

Ben Warren biggerbadderben at gmail.com
Fri Feb 12 16:19:14 CET 2010


Hello Teh Kok How,

On Thu, Feb 11, 2010 at 10:57 PM, Teh Kok How <khteh at smartbridges.com>wrote:

> No, it is a bug. Board_eth_init() calls pci_eth_init() (include/netdev.h)
> and if ethernet is soc, CONFIG_PCI is not defined, pci_eth_init() returns
> 0.
> This patch allows cpu_eth_init() to be called.
>
> Sorry, still not a bug.  The behavior you've described should be handled
internally to your specific board_eth_init() function.  If no PCI devices
are found either because none are present or because you didn't specify the
CONFIG_PCI option, you can call cpu_eth_init().

regards,
Ben


More information about the U-Boot mailing list