netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: Heiner Kallweit <hkallweit1@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Marcin Wojtas <mw@semihalf.com>,
	netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [PATCH RFC net-next 2/4] net: phylink: add EEE management
Date: Mon, 12 Jun 2023 00:25:29 +0200	[thread overview]
Message-ID: <50a42dc7-02df-4052-abeb-7d7b9cd7225e@lunn.ch> (raw)
In-Reply-To: <ZIY+szvNDxFCn94b@shell.armlinux.org.uk>

On Sun, Jun 11, 2023 at 10:37:55PM +0100, Russell King (Oracle) wrote:
> On Sun, Jun 11, 2023 at 11:28:32PM +0200, Andrew Lunn wrote:
> > On Fri, Jun 09, 2023 at 10:11:21AM +0100, Russell King (Oracle) wrote:
> > > Add EEE management to phylink.
> > 
> > Hi Russell
> > 
> > I've been working on my EEE patches. I have all pure phylib drivers
> > converted. I've incorporated these four patches as well, and make use
> > of the first patch in phylib.
> > 
> > Looking at this patch, i don't see a way for the MAC to indicate it
> > actually does support EEE. Am i missing it?
> 
> If a MAC doesn't support EEE, it won't have the necessary calls to
> phylink_*_eee() in its ethtool ops. As can be seen from the mvpp2
> patch, mvpp2_ethtool_get_eee() and mvpp2_ethtool_set_eee() are
> needed to call the phylink methods.

This is a bit messy for stmmac. Some versions of stmmac have EEE
support, some don't. Same is true for r8169, but that is a phylib
driver. I expect there are other examples.

We also have the same problem with DSA. There is currently one
phylink_mac_ops structure which has generic methods for all the
callbacks which then call into the switch driver if the switch driver
implements the call. And at least with the mv88e6xxx driver, when we
get around to adding EEE support, some switches will support it, some
won't, so will we need two different switch op structures?

Adding to the mac_capabilities just seems easier.

       Andrew

  reply	other threads:[~2023-06-11 22:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-09  9:11 [PATCH RFC net-next 0/4] phylink EEE support Russell King (Oracle)
2023-06-09  9:11 ` [PATCH RFC net-next 1/4] net: add helpers for EEE configuration Russell King (Oracle)
2023-06-09 13:52   ` Simon Horman
2023-06-09  9:11 ` [PATCH RFC net-next 2/4] net: phylink: add EEE management Russell King (Oracle)
2023-06-11 21:28   ` Andrew Lunn
2023-06-11 21:37     ` Russell King (Oracle)
2023-06-11 22:25       ` Andrew Lunn [this message]
2023-06-13  9:13         ` Russell King (Oracle)
2023-06-13 12:26           ` Andrew Lunn
2023-06-13 14:10             ` Russell King (Oracle)
2023-06-09  9:11 ` [PATCH RFC net-next 3/4] net: mvneta: convert to phylink EEE implementation Russell King (Oracle)
2023-06-09 14:02   ` Simon Horman
2023-06-09 14:31     ` Russell King (Oracle)
2023-06-09 18:25       ` Simon Horman
2023-06-09  9:11 ` [PATCH RFC net-next 4/4] net: mvpp2: add " Russell King (Oracle)
2023-06-09 14:03   ` Simon Horman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50a42dc7-02df-4052-abeb-7d7b9cd7225e@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mw@semihalf.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).