]> 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)
commitae38fa5c3beb6e9e3bb95f077916a44ef0a45351
tree9ed44bd885a1062854871e0fb4c5c5ff7c97da2b
parentb955e214128a994b637c610456775e8afe8e0cc1
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