Message ID | 20120509171847.GC4884@burratino |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
On Wed, 2012-05-09 at 12:18 -0500, Jonathan Nieder wrote: > From: Srinivas Kandagatla <srinivas.kandagatla@st.com> > Date: Mon, 2 Apr 2012 00:02:09 +0000 > > [ Upstream commit b3300146aa8efc5d3937fd33f3cfdc580a3843bc ] [...] > David Miller wrote: > > From: Jonathan Nieder <jrnieder@gmail.com> > > >> I'm guessing 3.2.y needs this, too, since it also includes > >> v3.2-rc1~129^2~247 ("net/phy: add IC+ IP101A and support APS"). > >> > >> Here's a quick backport made by adjusting the context line to > >> use IP101A_APS_ON instead of IP101A_G_APS_ON. > >> > >> Please include it in some later stable update if appropriate. > > > > Please submit this directly to the stable list. > > Thanks for looking it over. Doing so. [...] I've queued this up, thanks. Ben.
diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c index c81f136ae670..b14230016d9b 100644 --- a/drivers/net/phy/icplus.c +++ b/drivers/net/phy/icplus.c @@ -150,7 +150,8 @@ static int ip101a_config_init(struct phy_device *phydev) /* Enable Auto Power Saving mode */ c = phy_read(phydev, IP10XX_SPEC_CTRL_STATUS); c |= IP101A_APS_ON; - return c; + + return phy_write(phydev, IP10XX_SPEC_CTRL_STATUS, c); } static int ip175c_read_status(struct phy_device *phydev)