OSDN Git Service

net: phy: Add 10BASE-T1L support in phy-c45
authorAlexandru Tachici <alexandru.tachici@analog.com>
Fri, 29 Apr 2022 15:34:34 +0000 (18:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 May 2022 16:45:35 +0000 (17:45 +0100)
commit3da8ffd8545f62fec85a48a3c637b2f427974f11
treed0e208fdba1caa67ee3d3371629f8fb685a90996
parent1b020e448e0fb67bcb04ee0f778d413045f965d3
net: phy: Add 10BASE-T1L support in phy-c45

This patch is needed because the BASE-T1 uses different registers
for status, control and advertisement to those already
employed in the existing phy-c45 functions.

Where required, genphy_c45 functions will now check whether
the device supports BASE-T1 and use the specific registers
instead: 45.2.7.19 BASE-T1 AN control register,
45.2.7.20 BASE-T1 AN status, 45.2.7.21 BASE-T1 AN
advertisement register, 45.2.7.22 BASE-T1 AN LP Base
Page ability register, 45.2.1.185 BASE-T1 PMA/PMD control
register.

Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy-c45.c
drivers/net/phy/phy_device.c
include/linux/mdio.h
include/linux/phy.h
include/uapi/linux/mdio.h