diff options
author | 2021-02-19 13:10:44 +0300 | |
---|---|---|
committer | 2021-02-22 18:47:48 -0800 | |
commit | 4e9d9d1f4880ad358a8e5eb6ac4c811fd76dd617 (patch) | |
tree | 7bcc1d8d4a82e1760b06df5fbaca216be0c2bc36 /drivers/usb/cdns3/cdns3-debug.h | |
parent | net: mvpp2: skip RSS configurations on loopback port (diff) | |
download | linux-dev-4e9d9d1f4880ad358a8e5eb6ac4c811fd76dd617.tar.xz linux-dev-4e9d9d1f4880ad358a8e5eb6ac4c811fd76dd617.zip |
net: phy: icplus: call phy_restore_page() when phy_select_page() fails
The comments to phy_select_page() say that "phy_restore_page() must
always be called after this, irrespective of success or failure of this
call." If we don't call phy_restore_page() then we are still holding
the phy_lock_mdio_bus() so it eventually leads to a dead lock.
Fixes: 32ab60e53920 ("net: phy: icplus: add MDI/MDIX support for IP101A/G")
Fixes: f9bc51e6cce2 ("net: phy: icplus: fix paged register access")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/YC+OpFGsDPXPnXM5@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions