
12 Feb
2010
12 Feb
'10
4:19 p.m.
Hello Teh Kok How,
On Thu, Feb 11, 2010 at 10:57 PM, Teh Kok How khteh@smartbridges.comwrote:
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