mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 10:13:00 +03:00
t23x: hwpm: fix issue in tegra_soc_hwpm_open
For successful tegra_soc_hwpm_open, return success without falling through failure case. Added debug info in tegra_soc_hwpm_open function to indicate failure case. Bug 200702306 Change-Id: Ib107d9a89c185d913dc88843e750f36765790bbf Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-t23x/+/2532084 Tested-by: Vedashree Vidwans <vvidwans@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4e01e6e523
commit
ce130e224f
@@ -1315,6 +1315,8 @@ static int tegra_soc_hwpm_open(struct inode *inode, struct file *filp)
|
||||
hwpm->bind_completed = false;
|
||||
hwpm->full_wlist_size = -1;
|
||||
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
if (hwpm->dt_apertures[TEGRA_SOC_HWPM_PMA_DT]) {
|
||||
iounmap(hwpm->dt_apertures[TEGRA_SOC_HWPM_PMA_DT]);
|
||||
@@ -1341,6 +1343,7 @@ fail:
|
||||
kfree(cmd_slice_rtr_map[1].fake_registers);
|
||||
cmd_slice_rtr_map[1].fake_registers = NULL;
|
||||
}
|
||||
tegra_soc_hwpm_err("%s failed", __func__);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user