Skip to contentSkip to conversation

2.6.3 pcnet32.c fix link reporting for non-mii devices

PATCH Thomas Munck Steenholdt 1 participant 1 message Feb 21, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 10 lines · Don Fry

Thomas,

Thanks for the input. I am the unofficial maintainer, sort of. I don't have a card without an mii, so I can't test some of the changes. Do you know of a way to determine the link state so I can correctly return the state?

By the way, are you running 2.4 or 2.6?

This patch was made against 2.6.3 but it seems that at least Linus' kernel tree has been pretty much untouched for at least a little while, so i think it'll patch very nicely against some of the newer 2.4 kernels.

If you can test my patch on som NICs with mii and it works I guess it's okay! The only NIC that doesn't have mii that I have personaly experience with is the virtual device found in VMware. Thats also the one I used to test the patch and it works fine.

Perhaps check this comment posted to a redhat kernel bug for info:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=100527#c5

The guy suggests taking a peek at the LED status register to figure out if there's a link or not. However I have no idea if that will work for the VMware NIC anyway and that's the reason for doing it the way I did!

Thomas