From 93e8f4896fed68a5df31ff08cc7b7d843ede4741 Mon Sep 17 00:00:00 2001 From: Steve Cohen Date: Wed, 20 Nov 2019 16:32:47 -0500 Subject: [PATCH] disp: msm: sde: check correct field for XIN idle status Current code is checking the HALT_ACK instead of HALT_IDLE fields which leads to unnecessarily issuing halt requests on ports that are already idle. Change-Id: I2269ce6364dab3bb8a52a0fb1b1e68e9b92b6444 Signed-off-by: Steve Cohen --- msm/sde/sde_hw_vbif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msm/sde/sde_hw_vbif.c b/msm/sde/sde_hw_vbif.c index da37f87cd0..6b02e4f83b 100644 --- a/msm/sde/sde_hw_vbif.c +++ b/msm/sde/sde_hw_vbif.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved. */ #include "sde_hwio.h" @@ -178,7 +178,7 @@ static bool sde_hw_get_halt_ctrl(struct sde_hw_vbif *vbif, reg_val = SDE_REG_READ(c, VBIF_XIN_HALT_CTRL1); - return (reg_val & BIT(xin_id)) ? true : false; + return ((reg_val >> 16) & BIT(xin_id)) ? true : false; } static void sde_hw_set_qos_remap(struct sde_hw_vbif *vbif,