]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Propagate error from bus->reset
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 19 Apr 2020 03:17:13 +0000 (20:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 18:55:13 +0000 (11:55 -0700)
commitdbf96c844a452ca2ee7a4cf3991708d115819672
tree9ed44bd885a1062854871e0fb4c5c5ff7c97da2b
parent5ba28757e6eada7996331c209721c5d467f3a851
net: phy: Propagate error from bus->reset

If a bus->reset() call for the mii_bus structure returns an error (e.g.:
-EPROE_DEFER) we should propagate it accordingly.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c