Potential problem in fec.c for 8xx

Thomas Lange thomas at corelatus.com
Fri Sep 20 22:49:21 EST 2002


When using MII, the interrupt for link status changes
is enabled before the PHY type has been detected.

If a link status change happens before PHY is detected,
you will get kernel panic in mii_link_interrupt
because the MII functions are undefined.

The correct way to do this would be to move the
enabling of MII interrupts from fec_enet_init
to mii_discover_phy3.

I can prepare a patch if someone points me to
the correct version to patch.

/Thomas

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list