From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerome Brunet Subject: Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options Date: Wed, 16 Nov 2016 15:51:30 +0100 Message-ID: <1479307890.17538.40.camel@baylibre.com> References: <1479220154-25851-1-git-send-email-jbrunet@baylibre.com> <1479220154-25851-2-git-send-email-jbrunet@baylibre.com> <20161115163036.GB23231@lunn.ch> <476b72f3-5efe-3551-6c24-0e378d655a0f@gmail.com> <1479290189.17538.25.camel@baylibre.com> <20161116132337.GD19962@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20161116132337.GD19962-g2DYL2Zd6BY@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andrew Lunn Cc: Florian Fainelli , netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Carlo Caione , Kevin Hilman , Giuseppe Cavallaro , Alexandre TORGUE , Martin Blumenstingl , Andre Roth , Neil Armstrong , linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Wed, 2016-11-16 at 14:23 +0100, Andrew Lunn wrote: > > > > There two kind of PHYs supporting eee, the one advertising eee by > > default (like realtek) and the one not advertising it (like > > micrel). This is just the default register value. > > I don't know too much about EEE. So maybe a dumb question. Does the > MAC need to be involved? Or is it just the PHY? > > If the MAC needs to be involved, the PHY should not be advertising > EEE > unless the MAC asks for it by calling phy_init_eee(). If this is > true, > maybe we need to change the realtek driver, and others in that class. As far I understand, the advertised capabilities are exchanged during the auto-negotiation. At this stage, if the advertisement is disabled (regarless of the actual support) on either side of the link, there will be no low power idle state on the Tx nor the Rx path. If the advertisement is enabled on both side but we don't call phy_init_eee, I suppose Tx won't enter LPI, but Rx could. > >       Andrew -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html