LAN91C111
Hi all,
in context of one of my emails last week:
http://sourceforge.net/mailarchive/forum.php?thread_id=3364771&forum_id=12898
I'm wondering about how many people are using the LAN91C111 driver without significant problems. There is (just was :-) a fat signed/unsigned bug in drivers/smc91111.c which is significant at NIOS plattforms when you are using MAC addresses with address elements above 0x7f. Example: 00:07:ed:0a:a4:7b goes over to 00:07:ed:ff:a4:ff inside the chip. Simple solution:
static char smc_mac_addr[] = { . . . };have to be:
static char unsigned smc_mac_addr[6] = { . . . };In attatchment you will find my smc91111_fix patch. It includes some other minor fixes I've made. This patch has been working successful at NIOS Stratix and Cyclone boards.
Please try out and patch CVS tree.
Best Regards,
Signature · 22 lines
Mit freundlichen Gruessen Stephan Linz ====================================================================== Stephan Linz Softwareentwicklung MAZeT GmbH Email: mailto:linz at mazet.de G?schwitzer Str. 32 Tel. : (3641) 2809-55 D-07745 Jena Fax : (3641) 2809-12 Besuchen Sie bitte unsere Web-Seiten: http://www.MAZeT.de ====================================================================== -------------- next part -------------- A non-text attachment was scrubbed... Name: u-boot-20031103cvs-smc91111_fix.patch-0 Type: text/x-c Size: 2545 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20031103/ce1ac026/attachment.bin
Quoted 4 lines · In message <0311031202290K.02205@pcj86> you wrote:
In attatchment you will find my
smc91111_fixpatch. It includes some other minor fixes I've made. This patch has been working successful at NIOS Stratix and Cyclone boards.
Checked in. Thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de "Whoever undertakes to set himself up as a judge of Truth and Know- ledge is shipwrecked by the laughter of the gods." - Albert Einstein