]> git.ipfire.org Git - thirdparty/linux.git/commit
net: phy: microchip_t1s: configure link status control for LAN867x Rev.D0
authorParthiban Veerasooran <parthiban.veerasooran@microchip.com>
Thu, 30 Oct 2025 10:22:58 +0000 (15:52 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 Oct 2025 23:52:06 +0000 (16:52 -0700)
commit07f5765f26c3c7381a59d37c73d3ec51b4fd5cf0
tree3962f33e0931c26749a39d1074056a343e011bf3
parente7e756779afa102fc8f9d648ccdc2ecbc41ce2f8
net: phy: microchip_t1s: configure link status control for LAN867x Rev.D0

Configure the link status in the Link Status Control register for
LAN8670/1/2 Rev.D0 PHYs, depending on whether PLCA or CSMA/CD mode
is enabled. When PLCA is enabled, the link status reflects the PLCA
status. When PLCA is disabled (CSMA/CD mode), the PHY does not support
autonegotiation, so the link status is forced active by setting
the LINK_STATUS_SEMAPHORE bit.

The link status control is configured:
- During PHY initialization, for default CSMA/CD mode.
- Whenever PLCA configuration is updated.

This ensures correct link reporting and consistent behavior for
LAN867x Rev.D0 devices.

Signed-off-by: Parthiban Veerasooran <parthiban.veerasooran@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251030102258.180061-3-parthiban.veerasooran@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/microchip_t1s.c