]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: replace mutex_is_locked with lockdep_assert_held in phylib
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 6 Jan 2021 13:03:40 +0000 (14:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jan 2021 22:53:07 +0000 (14:53 -0800)
commitfca10cdb90990217a1efff84c4a7a44fa4efe8a4
tree773a30cbea9d815d5faf396340272b2449b3c61f
parent546036785b28ad105f2afb2b6a3e4c67c7e44025
net: phy: replace mutex_is_locked with lockdep_assert_held in phylib

Switch to lockdep_assert_held(_once), similar to what is being done
in other subsystems. One advantage is that there's zero runtime
overhead if lockdep support isn't enabled.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/ccc40b9d-8ee0-43a1-5009-2cc95ca79c85@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mdio_bus.c
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c