[U-Boot-Users] RE: [PATCH] probe for smc91111.c before chip init.

Woodruff, Richard r-woodruff2 at ti.com
Mon Dec 1 20:24:41 CET 2003


Seems I did the order wrong in the diff.  Here is the corrected version.

Sorry/Regards,

Richard W.


-----Original Message-----
From: Woodruff, Richard 
Sent: Monday, December 01, 2003 12:07 PM
To: u-boot-users at lists.sourceforge.net
Subject: [PATCH] probe for smc91111.c before chip init.

Hello,

This patch adds: 
 - a probe to verify the existence of the 91c111 chip prior to attempting to
init registers.  This allows the code to live in systems where the chip is
not present or disabled.  Prior to this a "tftp" or "dhcp" would hang if
attempted when the chip was not there, now it just returns immediately.  The
system I use has a plug in ether debug board, so this probe is useful and
allows having a single image around.

 - a mac address set function outside of smc_open.  This proves useful when
boot happens with out the chip being touched but the kernel wants etherent.
The current Linux kernel drivers assume the MAC address is good so having it
set here saves messing around with the kernel driver.

 - all signed characters are now unsigned.  A previous patch was issued with
out changing all references.  This gets them all.

Regards,

Richard W.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smc_probe.diff
Type: application/octet-stream
Size: 4340 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20031201/a2ea728f/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smc_probe.changelog
Type: application/octet-stream
Size: 192 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20031201/a2ea728f/attachment-0001.obj 


More information about the U-Boot mailing list