]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitc290d1ab12d3385da1d7be909e6b09caea3325bb
tree9ed44bd885a1062854871e0fb4c5c5ff7c97da2b
parentad3df63723a3fab65daaaf2daaa1a196659bb8e3
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