public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] Add OATC10 Sleep Wake-up support and LAN867x Rev.D0 handling
@ 2026-03-30 13:42 Parthiban Veerasooran
  2026-03-30 13:42 ` [PATCH net-next 1/3] net: phy: phy-c45: add OATC10 Sleep/Wakeup support in 10BASE-T1S PHYs Parthiban Veerasooran
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Parthiban Veerasooran @ 2026-03-30 13:42 UTC (permalink / raw)
  To: parthiban.veerasooran, piergiorgio.beruto, andrew, hkallweit1,
	linux, davem, edumazet, kuba, pabeni, steve.glendinning,
	UNGLinuxDriver
  Cc: netdev, linux-usb

This patch series adds support for 10BASE‑T1S Open Alliance TC10 (OATC10)
Sleep/Wake‑up to the generic Clause 45 PHY layer and integrates it with
the Microchip LAN867x Rev.D0 T1S PHY driver. It also ensures that PHY
suspend is properly invoked from the smsc95xx USB Ethernet driver so that
low‑power states are entered during system suspend.

Patch Summary:

1. add generic OATC10 suspend/resume helpers
   - Add TC10 Sleep/Wake‑up MDIO register definitions
   - Implement genphy_c45_oatc10_suspend() and genphy_c45_oatc10_resume()
   - Cache PLCA configuration in struct phy_device for restore after wake

2. add LAN867x Rev.D0 TC10 suspend and Wake‑on‑PHY support
   - Enable TC10 low‑power entry via generic helpers
   - Restore configuration correctly on resume
   - Add ethtool WoL support using PHY wake‑up pulse (WUP)
   - Mark driver with PHY_ALWAYS_CALL_SUSPEND

3. suspend attached PHY on system suspend
   - Call phy_suspend() before USB suspend
   - Allows TC10‑capable PHYs to enter low‑power state

Testing:

Tested on EVB-LAN8670-USB Rev.D0 with suspend/resume cycles and verified:
  - PLCA configuration is preserved across low-power transitions.
  - Wake-up Pulse triggers proper resume.
  - ethtool WOL operations function as expected.

Reference:
Open Alliance TC10 10BASE-T1S Sleep/Wake-up Specification:
https://opensig.org/wp-content/uploads/2024/01/TC14_TC10_JWG_10BASE-T1S-Sleep-Wake-up-Specification_1.0_final.pdf


Parthiban Veerasooran (3):
  net: phy: phy-c45: add OATC10 Sleep/Wakeup support in 10BASE-T1S PHYs
  net: phy: microchip_t1s: add suspend and WOL support for LAN867x
    Rev.D0
  net: usb: smsc95xx: suspend PHY during USB suspend

 drivers/net/phy/mdio-open-alliance.h | 13 ++++
 drivers/net/phy/microchip_t1s.c      | 67 ++++++++++++++++++++-
 drivers/net/phy/phy-c45.c            | 82 ++++++++++++++++++++++++++
 drivers/net/usb/smsc95xx.c           |  6 ++
 include/linux/phy.h                  | 88 +++++++++++++++-------------
 5 files changed, 211 insertions(+), 45 deletions(-)


base-commit: cf0d9080c6f795bc6be08babbffa29b62c06e9b0
-- 
2.34.1


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

end of thread, other threads:[~2026-04-02  5:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-30 13:42 [PATCH net-next 0/3] Add OATC10 Sleep Wake-up support and LAN867x Rev.D0 handling Parthiban Veerasooran
2026-03-30 13:42 ` [PATCH net-next 1/3] net: phy: phy-c45: add OATC10 Sleep/Wakeup support in 10BASE-T1S PHYs Parthiban Veerasooran
2026-03-30 14:46   ` Andrew Lunn
2026-04-01  3:12     ` Parthiban.Veerasooran
2026-03-30 13:42 ` [PATCH net-next 2/3] net: phy: microchip_t1s: add suspend and WOL support for LAN867x Rev.D0 Parthiban Veerasooran
2026-03-30 13:42 ` [PATCH net-next 3/3] net: usb: smsc95xx: suspend PHY during USB suspend Parthiban Veerasooran
2026-03-30 17:39   ` Oliver Neukum
2026-04-01  3:18     ` Parthiban.Veerasooran
2026-04-01 17:24       ` Oliver Neukum
2026-04-02  5:18         ` Parthiban.Veerasooran

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