[U-Boot-Users] [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.

Dear Richard,
in message 71555548814716479478431542AA5F8A059040@dlee2k04.ent.ti.com you wrote:
This patch adds:
...
- Patch by Richard Woodruff, 1 Dec 03:
Changes for smc91111.c, smc91111.h
- Add probe for card existance before init.
- Add mac addr init function.
- changed all MAC char's to uchar's.
Sorry, the patch conflicts with the current version of the source in CVS. Can you please check, and resubmit?
Best regards,
Wolfgang Denk
participants (2)
-
Wolfgang Denk
-
Woodruff, Richard