From: Dan Malek <dan@mvista.com>
To: Wolfgang Denk <wd@denx.de>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: 2.4.0-test11 - MPC860T FEC question.
Date: Wed, 06 Dec 2000 17:11:49 -0500 [thread overview]
Message-ID: <3A2EB9A5.65311F2E@mvista.com> (raw)
In-Reply-To: 200012040859.eB48wj301431@denx.local.net
Wolfgang Denk wrote:
> I was wrong here. The _interrupt_ comes just when it should. The
> problem is that the function which actually sets the "fep->link" flag
> (mii_relink) is not run immediately, but from a queue_task(...,
I don't like the queue_task stuff (this wasn't my doing). The MII/link
interrupt should be handled as part of the interrupt handler like it
used to be (until the late 2.3.99 code when this was changed).
> &tq_scheduler) call - and it's scheduled much too late for BOOTP to
> work.
Well, BOOTP in the kernel is going away soon, so it won't matter
much longer.
> How should we handle this? I've tried to compare against the 82xx
> code in "fcc_enet.c", but this seems to be kind of incomplete; there
> is no mii_link code at all, and the mii_relink() function is never
> used.
The 8260 is very incomplete. The problem is the MII control/status
is disconnected from the ethernet controller. The 860T FEC would
generate an interrupt when the bit shifting was done, but the 8260
requires software to do this. The 8260 is going to get one of two
equally ugly solutions, either a tasklet that runs for the purpose of
managing the MII, or to simply to software shift and poll the MII in
line with other functions. I stared with the FEC driver on the 8260,
hoping I could find a way to utilize the better multiple PHY support,
but I ended up just hacking it out and leaving a few functions around
as a reminder to try and find some common MII functions with the FEC.
It's not happening very fast.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-12-06 22:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-04 0:43 2.4.0-test11 - MPC860T FEC question Wolfgang Denk
2000-12-04 8:58 ` Wolfgang Denk
2000-12-06 22:11 ` Dan Malek [this message]
2000-12-06 23:47 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A2EB9A5.65311F2E@mvista.com \
--to=dan@mvista.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=wd@denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).