| From: |
| Parthiban Veerasooran <parthiban.veerasooran-AT-microchip.com> |
| To: |
| <parthiban.veerasooran-AT-microchip.com>, <piergiorgio.beruto-AT-gmail.com>, <andrew-AT-lunn.ch>, <hkallweit1-AT-gmail.com>, <linux-AT-armlinux.org.uk>, <davem-AT-davemloft.net>, <edumazet-AT-google.com>, <kuba-AT-kernel.org>, <pabeni-AT-redhat.com>, <steve.glendinning-AT-shawell.net>, <UNGLinuxDriver-AT-microchip.com> |
| Subject: |
| [PATCH net-next 0/3] Add OATC10 Sleep Wake-up support and LAN867x Rev.D0 handling |
| Date: |
| Mon, 30 Mar 2026 19:12:19 +0530 |
| Message-ID: |
| <20260330134222.67597-1-parthiban.veerasooran@microchip.com> |
| Cc: |
| <netdev-AT-vger.kernel.org>, <linux-usb-AT-vger.kernel.org> |
| Archive-link: |
| Article |
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_...
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