lan743x: Remove phy_read from link status change function
authorBryan Whitehead <Bryan.Whitehead@microchip.com>
Mon, 7 Jan 2019 19:00:09 +0000 (14:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 20:40:31 +0000 (21:40 +0100)
commitf352903d5d785339623a7d77a60239c76b80eb6e
tree21d22b6846b99b9d98ba74c49532a8919cafbdd4
parent08be4b72f36206213a0cd3fe8b356fd1f4c03854
lan743x: Remove phy_read from link status change function

[ Upstream commit a0071840d2040ea1b27e5a008182b09b88defc15 ]

It has been noticed that some phys do not have the registers
required by the previous implementation.

To fix this, instead of using phy_read, the required information
is extracted from the phy_device structure.

fixes: 23f0703c125b ("lan743x: Add main source files for new lan743x driver")
Signed-off-by: Bryan Whitehead <Bryan.Whitehead@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/microchip/lan743x_main.c