]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Call bus->reset() after releasing PHYs from reset
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 11 May 2017 18:24:16 +0000 (11:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 May 2017 03:06:18 +0000 (23:06 -0400)
commitf127dfabaaf5941a125962e87b598dc62cdb26fd
treec1bd0626eb82ad413cb88be179fae52ebb3abaa5
parenta95fcb0c1d9d1a8d9494ae3c5c8036f9f64c824c
net: phy: Call bus->reset() after releasing PHYs from reset

The API convention makes it that a given MDIO bus reset should be able
to access PHY devices in its reset() callback and perform additional
MDIO accesses in order to bring the bus and PHYs in a working state.

Commit d99a42d69d20 ("mdio_bus: Issue GPIO RESET to PHYs.") broke that
contract by first calling bus->reset() and then release all PHYs from
reset using their shared GPIO line, so restore the expected
functionality here.

Fixes: d99a42d69d20 ("mdio_bus: Issue GPIO RESET to PHYs.")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c