media: tegra: cdi-mgr: Fix deser power down IOCTL

Add missing power down implementation for the
CDI_MGR_IOCTL_DISABLE_DES_POWER ioctl.

Bug 4148683

Change-Id: I3c25ac9cdde8c7799cd60a3a78590f24637d4c7e
Signed-off-by: Ian Kaszubski <ikaszubski@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2962131
(cherry picked from commit befa29f775ca44a058a2c460f02ac0f77807c78d)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2943106
Reviewed-by: Vincent Chung <vincentc@nvidia.com>
Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
Reviewed-by: Justin Kim (SW-TEGRA) <juskim@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Ian Kaszubski
2023-07-26 08:55:32 -07:00
committed by mobile promotions
parent b2b703f13d
commit 6e4e41ce95

View File

@@ -1027,8 +1027,12 @@ static int cdi_mgr_des_power(
u8 val;
/* if runtime_pwrctrl_off is not true, power on all here */
if (!cdi_mgr->pdata->runtime_pwrctrl_off)
if (!cdi_mgr->pdata->runtime_pwrctrl_off) {
if (enable)
cdi_mgr_power_up(cdi_mgr, 0xffffffff);
else
cdi_mgr_power_down(cdi_mgr, 0xffffffff);
}
cdi_mgr_mcdi_ctrl(cdi_mgr, enable);