[PATCH v2] powerpc/83xx: Add power management support for MPC837x boards

Anton Vorontsov avorontsov at ru.mvista.com
Wed Mar 4 05:34:07 EST 2009


On Tue, Mar 03, 2009 at 11:57:46AM -0600, Scott Wood wrote:
> On Tue, Mar 03, 2009 at 07:02:01PM +0300, Anton Vorontsov wrote:
> >  		mdio at 24520 {
> > @@ -226,6 +244,8 @@
> >  			interrupt-parent = <&ipic>;
> >  			tbi-handle = <&tbi0>;
> >  			phy-handle = <&phy2>;
> > +			sleep = <&pmc 0xc0000000>;
> > +			fsl,magic-packet;
> >  		};
> 
> Note that this makes it look to the kernel like enet0 can be put to sleep
> without putting the mdio (which is shared with enet1) to sleep.  This is
> why I moved mdio under the ethernet node on 8313erdb.

And that isn't absolutely correct either, since enet1 depends on
net0... If enet0's mdio goes into sleep mode before enet1, then
enet1 will fail to send power-down command to its PHY...

So the better solution would be

sleep-nexus {
	sleep = <enet0-sccr>;

	enet0 {
		mdio {
		};
	};

	enet1 {
		sleep = <enet1-sccr>;
	};
};

..which isn't 100% correct either, but will work (because we use
a separate driver for the Gianfar MDIO).

What do you think?

-- 
Anton Vorontsov
email: cbouatmailru at gmail.com
irc://irc.freenode.net/bd2



More information about the Linuxppc-dev mailing list