From mboxrd@z Thu Jan 1 00:00:00 1970 From: Upakul Barkakaty Date: Tue, 13 Nov 2007 22:21:00 -0800 (PST) Subject: [U-Boot-Users] What if eth_init() fails? Message-ID: <13740586.post@talk.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi all, I observed that when the Ethernet initialization fails, it is not properly halting the operation and exiting. On walking through the Networking files, I saw that the eth_init() in eth.c either returns a 0 or 1. Now, in the NetLoop() in net.c file, from where the eth_init() gets called, checks the condition if (eth_init(bd) < 0) { eth_halt(); return(-1); } which is thus never true. Thus the network operation, never exits gracefully, if Ethernet init fails. Any of you, have any clues about this?? -- View this message in context: http://www.nabble.com/What-if-eth_init%28%29-fails--tf4802433.html#a13740586 Sent from the Uboot - Users mailing list archive@Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.denx.de/pipermail/u-boot/attachments/20071113/c07f5f6b/attachment.htm