linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 860T FEC
@ 2001-01-29 23:11 Timothy Ritchey
  2001-01-30  0:20 ` Dan Malek
  2001-01-30  0:49 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: Timothy Ritchey @ 2001-01-29 23:11 UTC (permalink / raw)
  To: linuxppc-embedded


Has anyone had any luck with the 860T FEC driver in the 2.4 kernel (I am
using the 01/13/01 snapshot from FSMLabs). It is certainly not working
out-of-the-box as it were. For example, it tries calling mii_queue with
read operations that require the MII interrupt before interrupts have
even been enabled. There is code that needs to be run in the
fec_restart() function (such as the interrupt enable, and just enabling
the ethernet device) but it is never called. I cannot see how this code
was ever working properly. Is anyone running it that can refute this? I
have made some changes that seem to get it halfway there, but am not
getting any transmit interrupts yet (I am getting receive and mii
interrupts).

Cheers,
tim

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 860T FEC
  2001-01-29 23:11 860T FEC Timothy Ritchey
@ 2001-01-30  0:20 ` Dan Malek
  2001-01-30  0:49 ` Wolfgang Denk
  1 sibling, 0 replies; 4+ messages in thread
From: Dan Malek @ 2001-01-30  0:20 UTC (permalink / raw)
  To: Timothy Ritchey; +Cc: linuxppc-embedded


Timothy Ritchey wrote:
>
> Has anyone had any luck with the 860T FEC driver in the 2.4 kernel (I am
> using the 01/13/01 snapshot from FSMLabs).

If you would have searched the archives, you would have noticed:

	1) We know it doesn't work
	2) Wolfgang Denk has one you can download
	3) BenH probably has a better one by now


	-- Dan

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 860T FEC
  2001-01-29 23:11 860T FEC Timothy Ritchey
  2001-01-30  0:20 ` Dan Malek
@ 2001-01-30  0:49 ` Wolfgang Denk
  2001-01-31  4:14   ` Timothy Ritchey
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2001-01-30  0:49 UTC (permalink / raw)
  To: Timothy Ritchey; +Cc: linuxppc-embedded


Hi Tim,

in message <3A75F8A8.64ADB0C@vacuumgenesis.com> you wrote:
>
> Has anyone had any luck with the 860T FEC driver in the 2.4 kernel (I am
> using the 01/13/01 snapshot from FSMLabs). It is certainly not working
> out-of-the-box as it were. For example, it tries calling mii_queue with

No, it ain't.

> the ethernet device) but it is never called. I cannot see how this code
> was ever working properly. Is anyone running it that can refute this? I

I think you are right. This code cannot work, never could.

But the good news is that I have a working version of the FEC driver;
see our modified kernel sources in
ftp://ftp.denx.de/pub/LinuxPPC/usr/src/,
or the patch at
ftp://ftp.denx.de/pub/LinuxPPC/usr/src/patches/patch.8xx_misc
(and the README for it in
ftp://ftp.denx.de/pub/LinuxPPC/usr/src/patches/README.8xx_misc
).

BTW: I've sent all these patches to Dan and Cort and Ben, so  I  hope
at least part of it will make it in the official sources.

> have made some changes that seem to get it halfway there, but am not
> getting any transmit interrupts yet (I am getting receive and mii
> interrupts).

It's working for me in several configurations.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Visit us at Embedded Systems: Feb 14-16 2001, Nuremberg, Halle 12/K01
(with TQ Components); our presentation "Starke Zwerge: Embedded Linux
auf PowerPC-Systemen" on Thursday, Feb 15 2001, 13:30 Forum Halle 11.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 860T FEC
  2001-01-30  0:49 ` Wolfgang Denk
@ 2001-01-31  4:14   ` Timothy Ritchey
  0 siblings, 0 replies; 4+ messages in thread
From: Timothy Ritchey @ 2001-01-31  4:14 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded


Wolfgang Denk wrote:
>
> BTW: I've sent all these patches to Dan and Cort and Ben, so  I  hope
> at least part of it will make it in the official sources.

Thanks! I finally got it up and running, and have ethernet!!!. I had to
make some changes WRT some of the MII commands, which I don't think
would impact anyone else, but I also had to change the order of setting
the fecp->imask, and clearing the interrupts. The patch had it clearing
the interrupts, then setting the mask. It needed to be the otherway
around, at least for me.

Cheers,
tim

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-31  4:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-29 23:11 860T FEC Timothy Ritchey
2001-01-30  0:20 ` Dan Malek
2001-01-30  0:49 ` Wolfgang Denk
2001-01-31  4:14   ` Timothy Ritchey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).