]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jan 2019 21:26:12 +0000 (16:26 -0500)
commit3ba023909fd8a92cb7ce3dfa78e98208014f10a5
treebfb1d547dc1f1914ae71414432e09dd1dcb9a10f
parentfe17ae8fbdeb2b27d66d3c3c6e406038f3487281
lan743x: Remove phy_read from link status change function

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: 308800c59cf1 ("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>
drivers/net/ethernet/microchip/lan743x_main.c