From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Andy Fleming <afleming@freescale.com>
Cc: netdev@oss.sgi.com,
Linux Kernel list <linux-kernel@vger.kernel.org>,
jason.mcmullan@timesys.com, Andy Fleming <AFLEMING@motorola.com>
Subject: Re: [PATCH] MII bus API for PHY devices
Date: Sat, 20 Nov 2004 09:43:04 +1100 [thread overview]
Message-ID: <1100904184.3856.46.camel@gaston> (raw)
In-Reply-To: <97DA0EF0-3A70-11D9-B023-000393C30512@freescale.com>
On Fri, 2004-11-19 at 15:18 -0600, Andy Fleming wrote:
> So when you say instantiated, would you consider calling an "attach"
> function with the phy_id and bus_id of the desired PHY instantiation?
> I'm fine with that. The PHY would need to be able to send
> notifications to the enet controller (currently done through a
> callback). I'm interested in ideas on how the notifier could be used
> (I have a distaste for callbacks).
Look at the notifier lists in include/linux/notifier.h
> Autopoll features sound pretty neat. I think the system should support
> that.
But that becomes MAC-dependant again... That means you'd need 1) a way
for the MAC driver to ask the PHY driver what register it wants
autopolled, and a function in the PHY driver for the MAC to call when it
detects a change. Also, autopoll is broken in some MACs...
> PHY interrupts are supported (they work quite well on my 85xx
> system), as is timer-based polling. Do you really think that there are
> special cases which can't be handled using a library similar to the
> sungem_phy one?
Nope. I think timer based polling with a sungem-like fallback mecanism
to forced speeds would be nice.
Ben.
next prev parent reply other threads:[~2004-11-19 22:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <069B6F33-341C-11D9-9652-000393DBC2E8@freescale.com>
2004-11-18 17:52 ` [PATCH] MII bus API for PHY devices Andy Fleming
2004-11-18 19:34 ` Jason McMullan
2004-11-18 19:50 ` Andy Fleming
2004-11-18 21:00 ` Jason McMullan
2004-11-18 23:26 ` Benjamin Herrenschmidt
2004-11-19 16:41 ` Jason McMullan
2004-11-19 21:18 ` Andy Fleming
2004-11-19 22:43 ` Benjamin Herrenschmidt [this message]
2004-11-20 0:04 ` Andy Fleming
2004-11-23 18:18 ` Jason McMullan
2004-12-02 18:29 ` [PATCH] MII bus API for PHY devices Rev 2.0 Jason McMullan
2004-11-19 20:18 [PATCH] MII bus API for PHY devices Manfred Spraul
2004-11-19 21:01 ` Andy Fleming
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=1100904184.3856.46.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=AFLEMING@motorola.com \
--cc=afleming@freescale.com \
--cc=jason.mcmullan@timesys.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
/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).