Skip to content

Commit 71d9e89

Browse files
Wayne Changgregkh
authored andcommitted
phy: tegra: xusb: Disable trk clk when not in use
Pad tracking is a one-time calibration for Tegra186 and Tegra194. Clk should be disabled after calibration. Disable clk after calibration. While at it add 100us delay for HW recording the calibration value. Signed-off-by: Wayne Chang <[email protected]> Signed-off-by: Jon Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1b17df9 commit 71d9e89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/phy/tegra/xusb-tegra186.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,10 @@ static void tegra186_utmi_bias_pad_power_on(struct tegra_xusb_padctl *padctl)
609609
value &= ~USB2_PD_TRK;
610610
padctl_writel(padctl, value, XUSB_PADCTL_USB2_BIAS_PAD_CTL1);
611611

612+
udelay(100);
613+
614+
clk_disable_unprepare(priv->usb2_trk_clk);
615+
612616
mutex_unlock(&padctl->lock);
613617
}
614618

@@ -633,8 +637,6 @@ static void tegra186_utmi_bias_pad_power_off(struct tegra_xusb_padctl *padctl)
633637
value |= USB2_PD_TRK;
634638
padctl_writel(padctl, value, XUSB_PADCTL_USB2_BIAS_PAD_CTL1);
635639

636-
clk_disable_unprepare(priv->usb2_trk_clk);
637-
638640
mutex_unlock(&padctl->lock);
639641
}
640642

0 commit comments

Comments
 (0)