]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 1 Apr 2021 12:41:58 +0000 (14:41 +0200)
commita7af800f7330290b121ed08a833aa2fd1090c811
treeb0a07149ab9fc730a009e3aa9147d4ba8c088fa5
parent4acbad5178de0da9dc2f1b4ee6e7833d78ed2406
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