From 0302284a2f1c00ad7f494968f831bd857137bf58 Mon Sep 17 00:00:00 2001 From: haotienh Date: Thu, 6 Feb 2025 21:31:19 +0000 Subject: [PATCH] NVIDIA: SAUCE: phy: tegra: xusb: Fix setting WAKE_WALK_EN Set WAKE_WALK_EN correctly, after reviewing the programming sequences. http://nvbugs/4804339 Signed-off-by: haotienh Reviewed-by: Henry Lin Reviewed-by: EJ Hsu Reviewed-by: WK Tsai Reviewed-by: Wayne Chang Signed-off-by: Vishwaroop A Acked-by: Noah Wager Acked-by: Jacob Martin Signed-off-by: Noah Wager --- drivers/phy/tegra/xusb-tegra186.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/phy/tegra/xusb-tegra186.c b/drivers/phy/tegra/xusb-tegra186.c index 6eb75143a49a..1b01dc397a03 100644 --- a/drivers/phy/tegra/xusb-tegra186.c +++ b/drivers/phy/tegra/xusb-tegra186.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * SPDX-FileCopyrightText: Copyright (c) 2016-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-FileCopyrightText: Copyright (c) 2016-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include @@ -428,8 +428,7 @@ static int tegra186_utmi_enable_phy_sleepwalk(struct tegra_xusb_lane *lane, /* enable the trigger of the sleepwalk logic */ value = ao_readl(priv, XUSB_AO_UTMIP_SLEEPWALK_CFG(index)); - value |= LINEVAL_WALK_EN; - value &= ~WAKE_WALK_EN; + value |= LINEVAL_WALK_EN | WAKE_WALK_EN; ao_writel(priv, value, XUSB_AO_UTMIP_SLEEPWALK_CFG(index)); /* reset the walk pointer and clear the alarm of the sleepwalk logic,