net: phy: introduce genphy_c45_pma_baset1_read_master_slave()
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 6 May 2022 04:23:54 +0000 (06:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2022 11:09:29 +0000 (12:09 +0100)
commitb9a366f3d874ce1c9c0148ec399f2ce4ab05a467
tree24bfc126fa8e922e615f33b2b099d420ee0d27f3
parenta04dd88f77a4036ceedd42ed1fbefa68008e1850
net: phy: introduce genphy_c45_pma_baset1_read_master_slave()

Move baset1 specific part of genphy_c45_read_pma() code to
separate function to make it reusable by PHY drivers.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy-c45.c
include/linux/phy.h