]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: add new phy_notify_state() api
authorPeter Griffin <peter.griffin@linaro.org>
Wed, 12 Nov 2025 16:27:06 +0000 (16:27 +0000)
committerVinod Koul <vkoul@kernel.org>
Tue, 18 Nov 2025 16:56:02 +0000 (22:26 +0530)
commit4edf654be5471659e3260be0a557eaa2ece668ab
tree32c14ab3fc9bcae5dbb5a1559379de2f743cba09
parent42690b8ec861b502538e425c5a7feb7a38764f04
phy: add new phy_notify_state() api

Add a new phy_notify_state() api that notifies and configures a phy for a
given state transition.

This is intended to be used by phy drivers which need to do some runtime
configuration of parameters that can't be handled by phy_calibrate() or
phy_power_{on|off}().

The first usage of this API is in the Samsung UFS phy that needs to issue
some register writes when entering and exiting the hibernate link state.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20251112-phy-notify-pmstate-v5-1-39df622d8fcb@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-core.c
include/linux/phy/phy.h