From ecc12cd5d2a78eb9e100877a1d032dbd1c6abbdd Mon Sep 17 00:00:00 2001 From: Amine Najahi Date: Wed, 12 Aug 2020 16:52:15 -0400 Subject: [PATCH] disp: msm: dp: enable INTF to DP drain rate matching Enable DP controller hardware feature to modulates the data drain rate between DP and INTF to reduce chances of MDP Underflow or DP Overflow. Change-Id: I7214a2fff957ae35b31c660bafa1d0141eb50680 Signed-off-by: Amine Najahi --- msm/dp/dp_catalog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/dp/dp_catalog.c b/msm/dp/dp_catalog.c index c928c1a3..2b855add 100644 --- a/msm/dp/dp_catalog.c +++ b/msm/dp/dp_catalog.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. */ @@ -1462,6 +1462,7 @@ static void dp_catalog_panel_dsc_cfg(struct dp_catalog_panel *panel) reg = dp_read(MMSS_DP_DSC_DTO); if (panel->dsc.dto_en) { reg |= BIT(0); + reg |= BIT(3); reg |= (panel->dsc.dto_n << 8); reg |= (panel->dsc.dto_d << 16); }