From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>
Cc: "AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Arınç ÜNAL" <arinc.unal@arinc9.com>,
"Daniel Golle" <daniel@makrotopia.org>,
"David S. Miller" <davem@davemloft.net>,
"DENG Qingfang" <dqfext@gmail.com>,
"Eric Dumazet" <edumazet@google.com>,
"Florian Fainelli" <florian.fainelli@broadcom.com>,
"Jakub Kicinski" <kuba@kernel.org>,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
"Matthias Brugger" <matthias.bgg@gmail.com>,
netdev@vger.kernel.org, "Paolo Abeni" <pabeni@redhat.com>,
"Sean Wang" <sean.wang@mediatek.com>,
"Simon Horman" <horms@kernel.org>,
UNGLinuxDriver@microchip.com,
"Vladimir Oltean" <olteanv@gmail.com>,
"Woojung Huh" <woojung.huh@microchip.com>
Subject: [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1)
Date: Tue, 10 Dec 2024 14:17:52 +0000 [thread overview]
Message-ID: <Z1hNkEb13FMuDQiY@shell.armlinux.org.uk> (raw)
Hi,
First part of DSA EEE cleanups.
Patch 1 removes a useless test that is always false. dp->pl will always
be set for user ports, so !dp->pl in the EEE methods will always be
false.
Patch 2 adds support for a new DSA support_eee() method, which tells
DSA whether the DSA driver supports EEE, and thus whether the ethtool
set_eee() and get_eee() methods should return -EOPNOTSUPP.
Patch 3 adds a trivial implementation for this new method which
indicates that EEE is supported.
Patches 4..8 adds implementations for .supports_eee() to all drivers
that support EEE in some form.
Patch 9 switches the core DSA code to require a .supports_eee()
implementation if DSA is supported. Any DSA driver that doesn't
implement this method after this patch will not support the ethtool
EEE methods.
Part 2 will remove the (now) useless .get_mac_eee() DSA operation.
drivers/net/dsa/b53/b53_common.c | 13 +++++++------
drivers/net/dsa/b53/b53_priv.h | 1 +
drivers/net/dsa/bcm_sf2.c | 1 +
drivers/net/dsa/microchip/ksz_common.c | 20 +++++---------------
drivers/net/dsa/mt7530.c | 1 +
drivers/net/dsa/mv88e6xxx/chip.c | 1 +
drivers/net/dsa/qca/qca8k-8xxx.c | 1 +
include/net/dsa.h | 2 ++
net/dsa/port.c | 16 ++++++++++++++++
net/dsa/user.c | 12 ++++++++++--
10 files changed, 45 insertions(+), 23 deletions(-)
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next reply other threads:[~2024-12-10 14:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-10 14:17 Russell King (Oracle) [this message]
2024-12-10 14:18 ` [PATCH net-next 1/9] net: dsa: remove check for dp->pl in EEE methods Russell King (Oracle)
2024-12-10 17:29 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 2/9] net: dsa: add hook to determine whether EEE is supported Russell King (Oracle)
2024-12-10 19:34 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 3/9] net: dsa: provide implementation of .support_eee() Russell King (Oracle)
2024-12-10 17:29 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 4/9] net: dsa: b53/bcm_sf2: implement .support_eee() method Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 5/9] net: dsa: mt753x: " Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 21:45 ` arinc.unal
2024-12-10 14:18 ` [PATCH net-next 6/9] net: dsa: qca8k: " Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 7/9] net: dsa: mv88e6xxx: " Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 8/9] net: dsa: ksz: " Russell King (Oracle)
2024-12-10 17:30 ` Florian Fainelli
2024-12-10 14:18 ` [PATCH net-next 9/9] net: dsa: require .support_eee() method to be implemented Russell King (Oracle)
2024-12-10 17:31 ` Florian Fainelli
2024-12-11 15:59 ` [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Vladimir Oltean
2024-12-11 16:00 ` Vladimir Oltean
2024-12-12 4:40 ` patchwork-bot+netdevbpf
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=Z1hNkEb13FMuDQiY@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=arinc.unal@arinc9.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=dqfext@gmail.com \
--cc=edumazet@google.com \
--cc=florian.fainelli@broadcom.com \
--cc=hkallweit1@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=sean.wang@mediatek.com \
--cc=woojung.huh@microchip.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.