OSDN Git Service

net: phy: exported the genphy_read_master_slave function
authorArun Ramadoss <arun.ramadoss@microchip.com>
Mon, 7 Mar 2022 16:15:14 +0000 (21:45 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Mar 2022 12:34:33 +0000 (13:34 +0100)
commit64807c2321512f67959e51f09e302c145c336184
tree906520693dbd2e2e415eca5cd768033386367ced
parent6c43a920a5cd26511059751f594c3ac05f9a6125
net: phy: exported the genphy_read_master_slave function

genphy_read_master_slave function allows to configure the master/slave
for gigabit phys only. In order to use this function irrespective of
speed, moved the speed check to the genphy_read_status call.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/phy_device.c
include/linux/phy.h