drm/msm/dpu: fix safe status debugfs file
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 1 Dec 2021 22:26:27 +0000 (01:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:38 +0000 (11:03 +0100)
[ Upstream commit f31b0e24d31e18b4503eeaf0032baeacc0beaff6 ]

Make safe_status debugfs fs file actually return safe status rather than
danger status data.

Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Link: https://lore.kernel.org/r/20211201222633.2476780-3-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c

index ad247c06e198f2e04b7c62943eb71b00e16a053b..93d916858d5ad8930dc021c39eb0c6541ed1e2fc 100644 (file)
@@ -73,8 +73,8 @@ static int _dpu_danger_signal_status(struct seq_file *s,
                                        &status);
        } else {
                seq_puts(s, "\nSafe signal status:\n");
-               if (kms->hw_mdp->ops.get_danger_status)
-                       kms->hw_mdp->ops.get_danger_status(kms->hw_mdp,
+               if (kms->hw_mdp->ops.get_safe_status)
+                       kms->hw_mdp->ops.get_safe_status(kms->hw_mdp,
                                        &status);
        }
        pm_runtime_put_sync(&kms->pdev->dev);