phy: tegra: p2u: Set ENABLE_L2_EXIT_RATE_CHANGE in calibration
authorVidya Sagar <vidyas@nvidia.com>
Thu, 13 Oct 2022 18:38:41 +0000 (00:08 +0530)
committerVinod Koul <vkoul@kernel.org>
Fri, 28 Oct 2022 12:13:12 +0000 (17:43 +0530)
commit0983529d7513e5417a5010f70582e1040c404551
tree93e514fd49507801a957af04ef297ab864416f3c
parent38cd167d1fc6b5bf038229b1fa02bb1f551a564f
phy: tegra: p2u: Set ENABLE_L2_EXIT_RATE_CHANGE in calibration

Set ENABLE_L2_EXIT_RATE_CHANGE register bit to request UPHY PLL rate change
to Gen1 during initialization. This helps in the below surprise link down
cases,
  - Surprise link down happens at Gen3/Gen4 link speed.
  - Surprise link down happens and external REFCLK is cut off, which causes
UPHY PLL rate to deviate to an invalid rate.

Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Link: https://lore.kernel.org/r/20221013183854.21087-9-vidyas@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/tegra/phy-tegra194-p2u.c