OSDN Git Service

net: sfp: change st_mutex locking
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 17 May 2023 10:38:07 +0000 (11:38 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 May 2023 02:52:31 +0000 (19:52 -0700)
commit1974fd3bf0f04589dea1a4a76273bbc8fd5760f6
tree2f66450e8b0d302e3eaa83e4a3754303e83d0f37
parent97a492050aa5e15507fd7b8774e7adaf8d6e4bb5
net: sfp: change st_mutex locking

Change st_mutex's use within SFP such that it only protects the various
state members, as it was originally supposed to, and isn't held while
making various calls outside the driver.

Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/sfp.c