Felipe W Damasio wrote:
> According to Clifford Chiang <email@example.com>, the LinkChg
> is used just to inform the driver the link status has changed, the
> changes are automatically set.
> Here's a patch against version 0.2.1.
> Please consider pulling it from:
You need to track link state by calling netif_carrier_on() and
netif_carrier_off(). Initialize it in cp_open, and update it when you
get a link change interrupt.
Also, I would rather you created a short inline function to handle the
link change interrupt, rather than coding it in the main interrupt
Finally, don't forget there is a certain amount of "bounce" time during
link change, so you need to test and see that link really is present
when the link change interrupt is handled. You might get a LinkChange
interrupt before autonegotiation is complete. So, at that instant, link
would be down, so you always need to check after autonegotiation is
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:01 EST