linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Hopper <eusdbho@rtp.ericsson.se>
To: linuxppc-embedded@lists.linuxppc.org
Subject: trouble with FEC on MPC860T - FEC_INTERRUPT not going off?
Date: Fri, 1 Dec 2000 22:36:22 -0500	[thread overview]
Message-ID: <20001201223622.A28837@slug.rtp.ericsson.se> (raw)


Hi,

I've ported ppcboot to a custom MPC860T-based board which uses the
FEC, and am now working on the kernel.  At the moment, I'm using the
2.4-2000-11-11 kernel from ftp.denx.de as a baseline, since it
seemed to be a good starting point.

I've created my own header file in include/asm-ppc/, with board info
struct, IMMR, and defined FEC_INTERRUPT to be SIU_LEVEL1.  I've
corrected drivers/net/setup.c to call fec_enet_init.  The kernel
boots, and gets down to this point, where the FEC is detected, but
the PHY is not, and so eth0 can't be opened:

eth0: FEC ENET Version 0.2, 08:00:3e:03:01:04
IP-Config: Failed to open eth0
IP-Config: No network devices available.

I've poked around, and it appears that the MII command queued at the
end of fec_enet_init() is never processed.  It appears that this
processing should be done from fec_enet_mii(), which is called from
the FEC interrupt routine, fec_enet_interrupt().  To prove the
point, I placed a printk() at the beginning of fec_enet_interrupt().
It never appeared on the console, so I conclude that FEC interrupts
aren't happening.

I'm aware that the MII can also have an interrupt assigned, though
the current code makes it appear to be optional (only the FADS board
seems to run request_8xxirq() on it).  The PHY IRQ line (it's an
Level One LXT972LC) isn't hooked up to the 860, though it could be.
Thinking this might be the problem, I put a scope on the LXT972's
MDINT* pin, and rebooted the kernel.  No interrupts at all.  So,
unless I'm missing an interaction, hooking that up would be unlikely
to change the current problem.

I imagine I'm missing something obvious, but I can't figure out what
it would be right now.  Has anyone got any suggestions, or perhaps
has run into this type of problem before?

Thanks!
Dan Hopper

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

             reply	other threads:[~2000-12-02  3:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-02  3:36 Dan Hopper [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-12-02  9:23 trouble with FEC on MPC860T - FEC_INTERRUPT not going off? Wolfgang Denk
2000-12-03  0:44 ` Dan Hopper
2000-12-03 14:40   ` 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=20001201223622.A28837@slug.rtp.ericsson.se \
    --to=eusdbho@rtp.ericsson.se \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /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).