aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorGravatar Dan Carpenter <dan.carpenter@oracle.com> 2020-05-29 13:02:07 +0300
committerGravatar David S. Miller <davem@davemloft.net> 2020-05-29 12:48:41 -0700
commit830f5ce266ce79e18f0026c36c99319b1bc08e1b (patch)
tree5b58f18a6b84b8ff04557f46fb13b7ed420e3872 /net
parentnet: phy: mscc: fix PHYs using the vsc8574_probe (diff)
downloadlinux-830f5ce266ce79e18f0026c36c99319b1bc08e1b.tar.gz
linux-830f5ce266ce79e18f0026c36c99319b1bc08e1b.tar.bz2
linux-830f5ce266ce79e18f0026c36c99319b1bc08e1b.zip
net: phy: marvell: unlock after phy_select_page() failure
We need to call phy_restore_page() even if phy_select_page() fails. Otherwise we are holding the phy_lock_mdio_bus() lock. This requirement is documented at the start of the phy_select_page() function. Fixes: a618e86da91d ("net : phy: marvell: Speedup TDR data retrieval by only changing page once") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions