ethernet works only the first time :- Fixed

NBLIST at sbcglobal.net NBLIST at sbcglobal.net
Fri May 24 08:00:57 EST 2002


Hello all,

I noticed that
               ifconfig eth0 up
calls fec_open() and
               ifconfig eth0 down
calls fec_close().

But fec_close() makes a call to fec_stop() which shuts
down the fec controller. fec_open() does not re-
initialize the controller again. And so, the ethernet
interface never works the second time around. Works
the first time since fec_init has set up init.

The fix is to remove the call to fec_stop() in
fec_close(). I've attached a patch that should work on
the MVista kernel 2.4.0 fec driver. An appropriate
location to call fec_stop() would be in cleanup_module
if the fec driver was a loadable kernel module.

Thank you,
Navin Boppuri.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fec.patch
Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20020523/050115fd/attachment.txt 


More information about the Linuxppc-embedded mailing list