]> git.ipfire.org Git - thirdparty/linux.git/commit
net: phy: phy-c45: add OATC14 10BASE-T1S PHY cable diagnostic support
authorParthiban Veerasooran <parthiban.veerasooran@microchip.com>
Wed, 5 Nov 2025 05:12:12 +0000 (10:42 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Nov 2025 02:52:33 +0000 (18:52 -0800)
commitb87ee13e34931779ac1dcd3264beba50b54966fd
tree4f41e164520bd7ace8a67769e577fce08e329421
parent140039580efa96d18576a6c9fa6b1158be8a1d0f
net: phy: phy-c45: add OATC14 10BASE-T1S PHY cable diagnostic support

Add support for Open Alliance TC14 (OATC14) 10BASE-T1S PHYs cable
diagnostic feature.

This patch implements:
- genphy_c45_oatc14_cable_test_start() to initiate a cable test
- genphy_c45_oatc14_cable_test_get_status() to retrieve test results
- Helper function to map PHY cable test status to ethtool result codes
- Function declarations and exports for use by PHY drivers

This enables ethtool to report ok, open, short, and undetectable cable
conditions on OATC14 10Base-T1S PHYs.

Open Alliance TC14 10BASE-T1S Advanced Diagnostic PHY Features
Specification ref:
https://opensig.org/wp-content/uploads/2025/06/OPEN_Alliance_10BASE-T1S_Advanced_PHY_features_for-automotive_Ethernet_V2.1b.pdf

Signed-off-by: Parthiban Veerasooran <parthiban.veerasooran@microchip.com>
Link: https://patch.msgid.link/20251105051213.50443-2-parthiban.veerasooran@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mdio-open-alliance.h
drivers/net/phy/phy-c45.c
include/linux/phy.h