Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <waynec@nvidia.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20230111110450.24617-5-jonathanh@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Wayne Chang and committed by
Vinod Koul
e5f91244 eb5793fb

+4 -2
+4 -2
drivers/phy/tegra/xusb-tegra186.c
··· 609 609 value &= ~USB2_PD_TRK; 610 610 padctl_writel(padctl, value, XUSB_PADCTL_USB2_BIAS_PAD_CTL1); 611 611 612 + udelay(100); 613 + 614 + clk_disable_unprepare(priv->usb2_trk_clk); 615 + 612 616 mutex_unlock(&padctl->lock); 613 617 } 614 618 ··· 636 632 value = padctl_readl(padctl, XUSB_PADCTL_USB2_BIAS_PAD_CTL1); 637 633 value |= USB2_PD_TRK; 638 634 padctl_writel(padctl, value, XUSB_PADCTL_USB2_BIAS_PAD_CTL1); 639 - 640 - clk_disable_unprepare(priv->usb2_trk_clk); 641 635 642 636 mutex_unlock(&padctl->lock); 643 637 }