FA-311 / Natsemi problems with 2.4.1
Well, I know this problem very well....
It seems that the original driver has some problems to set up the chip and flush its receive buffers before transmitting them.
I made some patches to make this chip work well. I have one for 2.2.17 kernel, and one for 2.4.0 one. I sent this patch to D. Becker some time ago, but he never replied me, and, as far as I know, never integrated it.
Here's my version for 2.2.17 kernel.
I made it work very well for a few weeks.
It's a bzip2 attachement,
as it is a bit long....
I'll send my patch for 2.4 kernel
as soon as I have finished to clean it up !!!
Jocelyn Mayer
Quoted 4 lines · Jocelyn Mayer
I'll send my patch for 2.4 kernel
as soon as I have finished to clean it up !!!
A few points:
* set your tabs to 8, and indent by 8 characters.
* Nastemi_auto_negociate: remove the 'static' variable - what if someone has multiple cards installed?
* You cannot wait for for more than a few dozend microseconds in an hardware interrupt handle, and a few hundred microseconds in a bottom half handler (e.g a timer)
Probably the autonegotiation takes longer - add a timer that calls you back after 50 milliseconds, and return.
And are you sure that a full reset is required for a simple link change?
Most other drivers are written the other way around:tx_timeout() performs the full reset if the transmitter is hung for > 2 seconds, and link_change only changes the chip configuration.
--
Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/