]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ef6220e121eefd894d89fefd2db810c8c65bfd5
tree906520693dbd2e2e415eca5cd768033386367ced
parent5c261b926e06023f3934eeb4fa0e53a030b40a85
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