]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio: Only perform gpio reset for PHYs
authorAndrew Lunn <andrew@lunn.ch>
Tue, 2 Jan 2018 16:40:26 +0000 (17:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 16:08:10 +0000 (11:08 -0500)
commit3566d512bc9758c7e56658c23e0d796ee1c23c71
treea7ca54d710c39be572817745c38c5ed9316251bf
parent51e89c39e4ef4f347a448fdfdebe7c4fa8438b1f
net: mdio: Only perform gpio reset for PHYs

Ethernet switch on the MDIO bus have historically performed their own
handling of the GPIO reset line. The resent patch to have the MDIO
core handle the reset has broken the switch drivers, in that they
cannot claim the GPIO. Some switch drivers need more control over the
GPIO line than what the MDIO core provides. So restore the historical
behaviour by only performing a reset of PHYs, not switches.

Fixes: 00f9672ff203 ("phylib: Add device reset GPIO support")
Reported-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c