phy: cadence: salvo: add .set_mode API
authorPeter Chen <peter.chen@nxp.com>
Wed, 17 May 2023 16:16:44 +0000 (12:16 -0400)
committerVinod Koul <vkoul@kernel.org>
Fri, 19 May 2023 17:44:06 +0000 (23:14 +0530)
commit3ad5cebe9c3a53bc3204816d1425f92b387d32b1
tree08aec8479668d31088766b1c263bc056b6ac7730
parentfe5516651e19f1d4d2e239e142e51320e2b2c18c
phy: cadence: salvo: add .set_mode API

For NXP platform design, the PHY can't know VBUS well, it causes the FSM
in controller seeing the disconnection at L1 use case. With .set_mode API
introduced, the controller driver could force PHY seeing B Session VALID
when it is at the device mode (VBUS is there), and keep FSM working well.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20230517161646.3418250-5-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/phy-cadence-salvo.c