From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8D8527FD49; Tue, 16 Jun 2026 17:57:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781632667; cv=none; b=rnTe5DkHwakI9p13KDF6Hx2O5tRrowUJe45TWxvOhZ0LSDHVKLvr/Y1MxQK/WQYdYku2oGLLCVM9KTNQDstTRSuEvPTPD3Y2LWDoySdPvwngLrE4sFcrOvH8OmEpY7nkxlh0/oL7M0Pntzd2XNPp45WxlLkKGcCgsHQ7pXWQoPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781632667; c=relaxed/simple; bh=Cf1JI+naTkoqsdP3NDSMJApjeBfl4Xtj0tmNf24EAeY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IV6upwZpLermYH688aUbwg3K5Y3r0p6pUCdBo93NdkFh7Re8ilRLswvM//F3GTCXXt59Oj6ICelCDP+GUOdedjNiCCwoy9FutTCUyi8VWi95rjoABtpA/FHQlGblKfpFsx7/TgHLZiawbYRmGPQBYFB5Me2zXue8DBv6uHZt2DY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=axdmzZGT; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="axdmzZGT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C746F1F000E9; Tue, 16 Jun 2026 17:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781632666; bh=LmPTxadl+r/NhVUlt8ERqwJum56XRSwgv8t5T6oYjZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=axdmzZGTNkiTzQN4qzByUZbZXHY82ZU57fRDAYmz/jlkvxn9PCbJQYpgyc+xwo7Yh mNY7Y8/tGiST089nFxneL+fDP3yVPSJxQJRcCDYCc+9Q1KEj5GQTdHHOK+6QBA47+k dJDtmwCWiqOVGSXL3ABjg3NaJU4lCKdFKOJrtWlE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Wayne Chang , Jon Hunter , Sasha Levin Subject: [PATCH 6.1 455/522] phy: tegra: xusb: Disable trk clk when not in use Date: Tue, 16 Jun 2026 20:30:02 +0530 Message-ID: <20260616145147.191789301@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260616145125.307082728@linuxfoundation.org> References: <20260616145125.307082728@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wayne Chang [ Upstream commit 71d9e899584e11bbd7eaf9934a619c69a15060d8 ] 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 Signed-off-by: Jon Hunter Link: https://lore.kernel.org/r/20230111110450.24617-5-jonathanh@nvidia.com Signed-off-by: Greg Kroah-Hartman Stable-dep-of: da110228b54f ("phy: tegra: xusb: Fix per-pad high-speed termination calibration") Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/phy/tegra/xusb-tegra186.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/drivers/phy/tegra/xusb-tegra186.c +++ b/drivers/phy/tegra/xusb-tegra186.c @@ -612,6 +612,10 @@ static void tegra186_utmi_bias_pad_power value &= ~USB2_PD_TRK; padctl_writel(padctl, value, XUSB_PADCTL_USB2_BIAS_PAD_CTL1); + udelay(100); + + clk_disable_unprepare(priv->usb2_trk_clk); + mutex_unlock(&padctl->lock); } @@ -636,8 +640,6 @@ static void tegra186_utmi_bias_pad_power value |= USB2_PD_TRK; padctl_writel(padctl, value, XUSB_PADCTL_USB2_BIAS_PAD_CTL1); - clk_disable_unprepare(priv->usb2_trk_clk); - mutex_unlock(&padctl->lock); }