linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1)
@ 2024-12-10 14:17 Russell King (Oracle)
  2024-12-10 14:18 ` [PATCH net-next 1/9] net: dsa: remove check for dp->pl in EEE methods Russell King (Oracle)
                   ` (11 more replies)
  0 siblings, 12 replies; 23+ messages in thread
From: Russell King (Oracle) @ 2024-12-10 14:17 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: AngeloGioacchino Del Regno, Arınç ÜNAL,
	Daniel Golle, David S. Miller, DENG Qingfang, Eric Dumazet,
	Florian Fainelli, Jakub Kicinski, linux-arm-kernel,
	linux-mediatek, Matthias Brugger, netdev, Paolo Abeni, Sean Wang,
	Simon Horman, UNGLinuxDriver, Vladimir Oltean, Woojung Huh

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!


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2024-12-12  4:41 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-10 14:17 [PATCH net-next 0/9] net: dsa: cleanup EEE (part 1) Russell King (Oracle)
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

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).