mbox series

[net-next,v2,0/7] net: phy: smsc: add support for edpd tunable

Message ID d0e999eb-d148-a5c1-df03-9b4522b9f2fd@gmail.com (mailing list archive)
Headers show
Series net: phy: smsc: add support for edpd tunable | expand

Message

Heiner Kallweit April 2, 2023, 3:10 p.m. UTC
This adds support for the EDPD PHY tunable.
Per default EDPD is disabled in interrupt mode, the tunable can be used
to override this, e.g. if the link partner doesn't use EDPD.
The interval to check for energy can be chosen between 1000ms and
2000ms. Note that this value consists of the 1000ms phylib interval
for state machine runs plus the time to wait for energy being detected.

v2:
- rename constant to EDPD_MAX_WAIT_DFLT_MS in patch 5
- consider that core locks phydev->lock in patch 6

Heiner Kallweit (7):
  net: phy: smsc: rename flag energy_enable
  net: phy: smsc: add helper smsc_phy_config_edpd
  net: phy: smsc: clear edpd_enable if interrupt mode is used
  net: phy: smsc: add flag edpd_mode_set_by_user
  net: phy: smsc: prepare for making edpd wait period configurable
  net: phy: smsc: add edpd tunable support
  net: phy: smsc: enable edpd tunable support

 drivers/net/phy/smsc.c  | 131 ++++++++++++++++++++++++++++++++++++----
 include/linux/smscphy.h |   4 ++
 2 files changed, 124 insertions(+), 11 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org April 3, 2023, 9:20 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Sun, 2 Apr 2023 17:10:34 +0200 you wrote:
> This adds support for the EDPD PHY tunable.
> Per default EDPD is disabled in interrupt mode, the tunable can be used
> to override this, e.g. if the link partner doesn't use EDPD.
> The interval to check for energy can be chosen between 1000ms and
> 2000ms. Note that this value consists of the 1000ms phylib interval
> for state machine runs plus the time to wait for energy being detected.
> 
> [...]

Here is the summary with links:
  - [net-next,v2,1/7] net: phy: smsc: rename flag energy_enable
    https://git.kernel.org/netdev/net-next/c/fc281d78b686
  - [net-next,v2,2/7] net: phy: smsc: add helper smsc_phy_config_edpd
    https://git.kernel.org/netdev/net-next/c/89946e31ff4f
  - [net-next,v2,3/7] net: phy: smsc: clear edpd_enable if interrupt mode is used
    https://git.kernel.org/netdev/net-next/c/d56417ad1133
  - [net-next,v2,4/7] net: phy: smsc: add flag edpd_mode_set_by_user
    https://git.kernel.org/netdev/net-next/c/a62051108096
  - [net-next,v2,5/7] net: phy: smsc: prepare for making edpd wait period configurable
    https://git.kernel.org/netdev/net-next/c/1ce658693b08
  - [net-next,v2,6/7] net: phy: smsc: add support for edpd tunable
    https://git.kernel.org/netdev/net-next/c/657de1cf258d
  - [net-next,v2,7/7] net: phy: smsc: enable edpd tunable support
    https://git.kernel.org/netdev/net-next/c/3c4c3b3e6d41

You are awesome, thank you!