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

Wolfgang Denk wd at denx.de
Sun Mar 21 21:38:54 CET 2010


Dear Ben,

In message <3270DCAC1B1540C7B13D9BC718F543BF at smartbridges.com> Teh Kok How wrote:
> Fixes: 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.
> 
> 
> Signed-off-by: Kok How, Teh <k_h_teh at yahoo.com>
> --- u-boot-2009.11.1.orig/net/eth.c     2010-01-25 16:35:12.000000000 +0800
> +++ u-boot-2009.11.1.new/net/eth.c      2010-02-12 17:20:32.864273873 +0800
> @@ -199,7 +199,7 @@
>  #endif
>         /* Try board-specific initialization first.  If it fails or isn't
>          * present, try the cpu-specific initialization */
> -       if (board_eth_init(bis) < 0)
> +       if (board_eth_init(bis) <= 0)
>                 cpu_eth_init(bis);
> 
>  #if defined(CONFIG_DB64360) || defined(CONFIG_CPCI750)
> 

Do you have this patch in your queue?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Abstainer: A weak person who yields to the temptation of denying him-
self a pleasure. A total abstainer is one who  abstains  from  every-
thing  but  abstention, and especially from inactivity in the affairs
of others.                                           - Ambrose Bierce


More information about the U-Boot mailing list