Replying this to the netdev list for their perusal. First, I'm flattered that you've based this on the gianfar phy code, which I stole shamelessly from Benh's code, but Benh changed his code, and so
Author: Jason McMullan <jason.mcmullan@xxxxxxxxxxx>
Date: Thu, 18 Nov 2004 14:34:49 -0500
(Just an off-the-cuff answer here) In line with the OCP->platform work I've been doing, I would think that creating 'phy' devices on the platform bus would be appropriate, with 'platform_data' that d
A PHY 'platform_data' struct like: struct phy_device_data { struct { const char *name; int id; } ethernet_platform_device_parent; int phy_id; } So you would have each PHY know the controller to which
Author: Jason McMullan <jason.mcmullan@xxxxxxxxxxx>
Date: Thu, 18 Nov 2004 16:00:47 -0500
Yes, I am talking about sysfs. And yes, I think every PHY should have it's own .c file. (although most people could get away with using a non-IRQ 'drivers/net/phy/phy-generic.c' Doh! I forgot. -- Jas
Author: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Nov 2004 10:26:31 +1100
Unfortunately, this is all quite platform specific and the ethernet driver may be the only one to know what to do here... add to that various special cases of the way the PHY is wired or controlled,
Author: Jason McMullan <jason.mcmullan@xxxxxxxxxxx>
Date: Fri, 19 Nov 2004 11:41:38 -0500
I think *requiring* a binding to ethernet devices is a bad idea. For example, on many MPC8260 embedded systems, the MII bus is controlled by GPIO pins, not an ethernet MDIO system. Some applications
Hi, I don't like the polling/interrupt setup part: - for a nic driver, there is no irq line that could be requested by mii_phy_irq_enable(). - if the mii bus driver uses it's own timers, then locking
Hi, I don't like the polling/interrupt setup part: - for a nic driver, there is no irq line that could be requested by mii_phy_irq_enable(). - if the mii bus driver uses it's own timers, then lockin