From 9894f9ab8ffa44b6463663a21c82c06eab30d9ff Mon Sep 17 00:00:00 2001 From: Jin Li Date: Thu, 3 Nov 2016 10:34:49 -0400 Subject: [PATCH] drm/sde: only set split registers for DSI interfaces The SPLIT related registers are only for DSI interfaces. Without checking the interface type, they could be overwrote by configurations through HDMI path. CRs-Fixed: 1085586 Change-Id: I7ace9fd8dfe5ee99cb750b2723e8f22701039552 Signed-off-by: Jin Li Signed-off-by: Yunyun Cao --- drivers/gpu/drm/msm/sde/sde_hw_top.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/msm/sde/sde_hw_top.c b/drivers/gpu/drm/msm/sde/sde_hw_top.c index 1a5d469e6e7e..d6d2e41ff5aa 100644 --- a/drivers/gpu/drm/msm/sde/sde_hw_top.c +++ b/drivers/gpu/drm/msm/sde/sde_hw_top.c @@ -42,6 +42,10 @@ static void sde_hw_setup_split_pipe(struct sde_hw_mdp *mdp, if (!mdp || !cfg) return; + /* The SPLIT registers are only for DSI interfaces */ + if ((cfg->intf != INTF_1) && (cfg->intf != INTF_2)) + return; + if (cfg->en) { if (cfg->mode == INTF_MODE_CMD) { lower_pipe = FLD_SPLIT_DISPLAY_CMD;