phy: core: add notify_connect and notify_disconnect callback
authorStanley Chang <stanley_chang@realtek.com>
Wed, 13 Dec 2023 03:10:06 +0000 (11:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jan 2024 01:36:14 +0000 (17:36 -0800)
commit5de5f1e292e56fe4b8d28923d325f4c16f3766cf
tree6da8c15c3858a20f34183d7f717c8df91ecfbea2
parentbec7e43b162c58798e6dc30d8e70d1e2318aaf2d
phy: core: add notify_connect and notify_disconnect callback

In Realtek SoC, the parameter of usb phy is designed to be able to
do dynamic tuning based in the port status. Therefore, add a notify
callback of phy driver when usb connection/disconnection change.

Signed-off-by: Stanley Chang <stanley_chang@realtek.com>
Link: https://lore.kernel.org/r/20231213031203.4911-1-stanley_chang@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/phy-core.c
include/linux/phy/phy.h