Re: [PATCH] MII bus API for PHY devices

From: Benjamin Herrenschmidt
Date: Fri Nov 12 2004 - 01:17:25 EST


On Thu, 2004-11-11 at 17:48 -0500, Jason McMullan wrote:
> Second attempt, more polish.
>
> (Though I'm leaving my macro abuse in for now!)
>
> Description: MII Bus interface
> Date: Thu, 11 Nov 2004 17:44:57 -0500
> Signed-off-by: Jason McMullan <jmcmullan@xxxxxxxxxxx>
> Depends:
> linux-2.6.9

Have you looked at what sungem/sungem_phy does ?

Among others, sungem has an algorithm for automatically testing fallback
forced speeds when aneg fails, which has proven useful with a variety of
PHY/hub combos, plus a "magic_aneg" bit in the PHY definition for PHYs
taht can do that themselves automatically.

Also, besides shutdown(), you probably want a suspend() callback used by
the MAC driver when the machine is entering a suspend() state (I
definitely need that with various PHYs on powermacs) along with the
various WOL parameters.

Ben.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/