From 9b9c743199eeddb72b55db0fbbc06122ab0626cd Mon Sep 17 00:00:00 2001 From: Vedashree Vidwans Date: Thu, 12 Oct 2023 11:39:00 -0700 Subject: [PATCH] tegra: hwpm: th500: fix bug in disable triggers Update wait PMA idle condition to use pma perfmux structure to read PMA register. Jira THWPM-109 Change-Id: Ia3bb204dc182025e229f258c0a3191dc0d74dad1 Signed-off-by: Vedashree Vidwans Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2996277 Reviewed-by: Vishal Aslot Reviewed-by: Seema Khowala GVS: Gerrit_Virtual_Submit --- drivers/tegra/hwpm/hal/th500/soc/th500_soc_aperture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tegra/hwpm/hal/th500/soc/th500_soc_aperture.c b/drivers/tegra/hwpm/hal/th500/soc/th500_soc_aperture.c index ae2287b..f18a83f 100644 --- a/drivers/tegra/hwpm/hal/th500/soc/th500_soc_aperture.c +++ b/drivers/tegra/hwpm/hal/th500/soc/th500_soc_aperture.c @@ -130,7 +130,7 @@ int th500_hwpm_soc_disable_triggers(struct tegra_soc_hwpm *hwpm) "PMMSYS_SYS0ROUTER_ENGINESTATUS_STATUS timed out"); /* Wait for PMA to idle */ - tegra_hwpm_timeout_print(hwpm, retries, sleep_msecs, rtr_perfmux, + tegra_hwpm_timeout_print(hwpm, retries, sleep_msecs, pma_perfmux, pmasys_channel_status_r(0), ®_val, ((reg_val & pmasys_channel_status_engine_status_m()) != pmasys_channel_status_engine_status_empty_f()),