phy: tegra: xusb: Tegra210 host mode VBUS control
authorJC Kuo <jckuo@nvidia.com>
Wed, 20 Jan 2021 07:34:11 +0000 (15:34 +0800)
committerThierry Reding <treding@nvidia.com>
Thu, 3 Jun 2021 12:52:45 +0000 (14:52 +0200)
commit0baabcbedd9ef2381636a36f669187a46380de19
treeb40889938cb08a4f57d37cc69b4e201f8d7da34a
parent2d102148727337005ac283a4190c6e56f973e915
phy: tegra: xusb: Tegra210 host mode VBUS control

To support XUSB host controller ELPG, this commit moves VBUS control
.phy_power_on()/.phy_power_off() to .phy_init()/.phy_exit().
When XUSB host controller enters ELPG, host driver invokes
.phy_power_off(), VBUS should remain ON so that USB devices will not
disconnect. VBUS can be turned OFF when host driver invokes
.phy_exit() which indicates disabling a USB port.

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Acked-By: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/phy/tegra/xusb-tegra210.c