net: sfp: move sm_mutex into sfp_check_state()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 17 May 2023 10:38:02 +0000 (11:38 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 May 2023 02:52:31 +0000 (19:52 -0700)
commit97a492050aa5e15507fd7b8774e7adaf8d6e4bb5
treeb14edfa91b4cca1f7ad388104f70bf0f9c57603d
parenta9fe964e7aaeb3fc06a91c21269d0ac8b5afcea8
net: sfp: move sm_mutex into sfp_check_state()

Provide an unlocked version of sfp_sm_event() which can be used by
sfp_check_state() to avoid having to keep re-taking the lock if
several signals have changed state.

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