diff mbox series

[v1,2/8] drm/msm/dpu: fix safe status debugfs file

Message ID 20211201222633.2476780-3-dmitry.baryshkov@linaro.org
State Accepted
Commit f31b0e24d31e18b4503eeaf0032baeacc0beaff6
Headers show
Series [v1,1/8] drm/msm/dpu: move disable_danger out of plane subdir | expand

Commit Message

Dmitry Baryshkov Dec. 1, 2021, 10:26 p.m. UTC
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>
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Abhinav Kumar Dec. 9, 2021, 9:10 p.m. UTC | #1
On 12/1/2021 2:26 PM, Dmitry Baryshkov wrote:
> 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>
> ---
>   drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
> index 259d438bc6e8..e7f0cded2c6b 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
> @@ -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);
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
index 259d438bc6e8..e7f0cded2c6b 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
@@ -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);