]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: tegra: xusb: Decouple CYA_TRK_CODE_UPDATE_ON_IDLE from trk_hw_mode
authorWayne Chang <waynec@nvidia.com>
Mon, 19 May 2025 09:09:28 +0000 (17:09 +0800)
committerVinod Koul <vkoul@kernel.org>
Sun, 15 Jun 2025 14:16:01 +0000 (19:46 +0530)
commit24c63c590adca310e0df95c77cf7aa5552bc3fc5
treeb0f330ee2256f0cc9440dde87bd58b601925346e
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
phy: tegra: xusb: Decouple CYA_TRK_CODE_UPDATE_ON_IDLE from trk_hw_mode

The logic that drives the pad calibration values resides in the
controller reset domain and so the calibration values are only being
captured when the controller is out of reset. However, by clearing the
CYA_TRK_CODE_UPDATE_ON_IDLE bit, the calibration values can be set
while the controller is in reset.

The CYA_TRK_CODE_UPDATE_ON_IDLE bit was previously cleared based on the
trk_hw_mode flag, but this dependency is not necessary. Instead,
introduce a new flag, trk_update_on_idle, to independently control this
bit.

Fixes: d8163a32ca95 ("phy: tegra: xusb: Add Tegra234 support")
Cc: stable@vger.kernel.org
Signed-off-by: Wayne Chang <waynec@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20250519090929.3132456-2-waynec@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/tegra/xusb-tegra186.c
drivers/phy/tegra/xusb.h