phy: tegra: xusb: Move usb3 port init for Tegra210
authorJC Kuo <jckuo@nvidia.com>
Wed, 20 Jan 2021 07:34:03 +0000 (15:34 +0800)
committerThierry Reding <treding@nvidia.com>
Thu, 3 Jun 2021 12:49:33 +0000 (14:49 +0200)
commit23d5ec3f02866be6be3f47eab01771f1cf445a68
tree5927ea34b078f7a4dedfdf6f4a9d8cd525678820
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
phy: tegra: xusb: Move usb3 port init for Tegra210

The programming sequence in tegra210_usb3_port_enable() is required
for both cold boot and SC7 exit, and must be performed only after
PEX/SATA UPHY is initialized. Therefore, this commit moves the
programming sequence to tegra210_usb3_phy_power_on(). PCIE/SATA phy
.power_on() stub will invoke tegra210_usb3_phy_power_on() if the lane
is assigned for XUSB super-speed.

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
drivers/phy/tegra/xusb.c
drivers/phy/tegra/xusb.h