public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/8] Make SmartEEE support controllable
@ 2023-03-27 14:21 Oleksij Rempel
  2023-03-27 14:21 ` [PATCH net-next v2 1/8] net: phy: Add driver-specific get/set_eee support for non-standard PHYs Oleksij Rempel
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Oleksij Rempel @ 2023-03-27 14:21 UTC (permalink / raw)
  To: Wei Fang, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Andrew Lunn, Heiner Kallweit, Russell King
  Cc: Oleksij Rempel, kernel, linux-kernel, netdev, Shenwei Wang,
	Clark Wang, NXP Linux Team, Amit Cohen, Gal Pressman,
	Alexandru Tachici, Piergiorgio Beruto, Willem de Bruijn,
	Vladimir Oltean

changes v2:
- handle lack of eee_get/set directly by the ethtool framework. This
  will avoid the need to patch all ethernet controller drivers.
- add mac_supports_eee and is_smart_eee_phy flags to indicate support
  of different levels.
- reword commit logs.
- add FEC patch to indicated EEE support for some SoCs

Some PHYs, such as the AR8035, provide so-called SmartEEE support, which
enables the use of EEE with MACs that lack native EEE capabilities,
particularly the LPI support. Since this functionality is usually
enabled by default, it may have a negative impact on certain use cases
(e.g., PTP) or even prevent the use of all link modes without PHY driver
assistance (e.g., a full range of half-duplex modes).

To address at least some of these issues, this patch series aims to pass
EEE ethtool access to PHY drivers, enabling them to control SmartEEE
support more effectively. The series consists of several patches that
improve EEE handling for specific PHYs and MACs, making it possible to
enable or disable SmartEEE functionality as needed, depending on the
specific use case and requirements. As a result, users will gain more
control and flexibility over energy-saving features and compatibility in
their networking setups.

Oleksij Rempel (8):
  net: phy: Add driver-specific get/set_eee support for non-standard
    PHYs
  net: phy: add is_smart_eee_phy variable for SmartEEE support
  net: phy: Add mac_supports_eee variable for EEE support and LPI
    handling
  ethtool: eee: Rework get/set handler for SmartEEE-capable PHYs with
    non-EEE MACs
  net: phy: at803x: Indicate SmartEEE support for AR8035 and AR8031 PHYs
  net: phy: at803x: Make SmartEEE support optional and configurable via
    ethtool
  net: phy: at803x: Fix SmartEEE support for some link configurations
  net: fec: Indicate EEE (LPI) support for some FEC Ethernet controllers

 drivers/net/ethernet/freescale/fec_main.c |   2 +
 drivers/net/phy/at803x.c                  | 158 +++++++++++++++++++++-
 drivers/net/phy/phy.c                     |  10 +-
 include/linux/phy.h                       |   9 ++
 net/ethtool/common.c                      |  38 ++++++
 net/ethtool/common.h                      |   2 +
 net/ethtool/eee.c                         |  17 ++-
 7 files changed, 221 insertions(+), 15 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2023-03-28 13:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-27 14:21 [PATCH net-next v2 0/8] Make SmartEEE support controllable Oleksij Rempel
2023-03-27 14:21 ` [PATCH net-next v2 1/8] net: phy: Add driver-specific get/set_eee support for non-standard PHYs Oleksij Rempel
2023-03-27 16:41   ` Andrew Lunn
2023-03-27 14:21 ` [PATCH net-next v2 2/8] net: phy: add is_smart_eee_phy variable for SmartEEE support Oleksij Rempel
2023-03-27 14:21 ` [PATCH net-next v2 3/8] net: phy: Add mac_supports_eee variable for EEE support and LPI handling Oleksij Rempel
2023-03-27 14:21 ` [PATCH net-next v2 4/8] ethtool: eee: Rework get/set handler for SmartEEE-capable PHYs with non-EEE MACs Oleksij Rempel
2023-03-27 20:45   ` kernel test robot
2023-03-28  3:36   ` kernel test robot
2023-03-27 14:21 ` [PATCH net-next v2 5/8] net: phy: at803x: Indicate SmartEEE support for AR8035 and AR8031 PHYs Oleksij Rempel
2023-03-27 14:22 ` [PATCH net-next v2 6/8] net: phy: at803x: Make SmartEEE support optional and configurable via ethtool Oleksij Rempel
2023-03-28 12:05   ` Oleksij Rempel
2023-03-28 12:49     ` Andrew Lunn
2023-03-28 13:00       ` Oleksij Rempel
2023-03-27 14:22 ` [PATCH net-next v2 7/8] net: phy: at803x: Fix SmartEEE support for some link configurations Oleksij Rempel
2023-03-27 14:22 ` [PATCH net-next v2 8/8] net: fec: Indicate EEE (LPI) support for some FEC Ethernet controllers Oleksij Rempel
2023-03-28  1:48   ` Wei Fang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox