Re: GPIO registration for external Ethernet PHY oscillator enable/disable

2014-10-07 Thread Michael Welling
On Tue, Oct 07, 2014 at 04:09:45PM +0200, Linus Walleij wrote: > On Fri, Sep 26, 2014 at 10:04 PM, Michael Welling > wrote: > > On Fri, Sep 26, 2014 at 10:16:51AM -0700, Florian Fainelli wrote: > >> > >> Yes and no, this might feel like the wrong place, but ultimately, the > >> Ethernet MAC is a

Re: GPIO registration for external Ethernet PHY oscillator enable/disable

2014-10-07 Thread Michael Welling
On Tue, Oct 07, 2014 at 04:04:27PM +0200, Linus Walleij wrote: > On Thu, Sep 25, 2014 at 9:17 PM, Michael Welling wrote: > > > How do I register a GPIO for use in the PHY suspend and resume code? > > Can it be handled outside of the PHY driver? > > Nominally these days you should get a named GPI

Re: GPIO registration for external Ethernet PHY oscillator enable/disable

2014-10-07 Thread Linus Walleij
On Fri, Sep 26, 2014 at 10:04 PM, Michael Welling wrote: > On Fri, Sep 26, 2014 at 10:16:51AM -0700, Florian Fainelli wrote: >> >> Yes and no, this might feel like the wrong place, but ultimately, the >> Ethernet MAC is a consumer of the PHY device, and is in control, through >> the PHY library of

Re: GPIO registration for external Ethernet PHY oscillator enable/disable

2014-10-07 Thread Linus Walleij
On Thu, Sep 25, 2014 at 9:17 PM, Michael Welling wrote: > How do I register a GPIO for use in the PHY suspend and resume code? > Can it be handled outside of the PHY driver? Nominally these days you should get a named GPIO using the GPIO descriptor abstraction, putting a named GPIO reference in

Re: GPIO registration for external Ethernet PHY oscillator enable/disable

2014-09-26 Thread Michael Welling
On Fri, Sep 26, 2014 at 10:16:51AM -0700, Florian Fainelli wrote: > > Yes and no, this might feel like the wrong place, but ultimately, the > Ethernet MAC is a consumer of the PHY device, and is in control, through > the PHY library of how and when the PHY gets to be powered off. > So here is the

Re: GPIO registration for external Ethernet PHY oscillator enable/disable

2014-09-26 Thread Michael Welling
On Fri, Sep 26, 2014 at 10:16:51AM -0700, Florian Fainelli wrote: > On 09/26/2014 09:59 AM, Michael Welling wrote: > > On Thu, Sep 25, 2014 at 12:56:34PM -0700, Florian Fainelli wrote: > >> So, PHY drivers are allowed to provide specialized implementations for > >> suspend/resume operations that ar

Re: GPIO registration for external Ethernet PHY oscillator enable/disable

2014-09-26 Thread Florian Fainelli
On 09/26/2014 09:59 AM, Michael Welling wrote: > On Thu, Sep 25, 2014 at 12:56:34PM -0700, Florian Fainelli wrote: >> So, PHY drivers are allowed to provide specialized implementations for >> suspend/resume operations that are called by phy_suspend() and >> phy_resume(), the current Micrel PHY driv

Re: GPIO registration for external Ethernet PHY oscillator enable/disable

2014-09-26 Thread Michael Welling
On Thu, Sep 25, 2014 at 12:56:34PM -0700, Florian Fainelli wrote: > So, PHY drivers are allowed to provide specialized implementations for > suspend/resume operations that are called by phy_suspend() and > phy_resume(), the current Micrel PHY driver uses the generic > suspend/resume implementation

Re: GPIO registration for external Ethernet PHY oscillator enable/disable

2014-09-25 Thread Florian Fainelli
On 09/25/2014 12:17 PM, Michael Welling wrote: > Looks like my original message got buried in the mailing list. > > Lets try this again with a few key developers CC'd. > > Original Message: > I have some questions that span multiple subsystems including > gpio/pinctrl, apm, and net subsystems. >