From 6fc7e0439e31e91a44c0d7bff93e26bd09c84bc3 Mon Sep 17 00:00:00 2001 From: Nisarg Bhavsar Date: Mon, 3 Apr 2023 10:40:42 -0700 Subject: [PATCH] disp: msm: dp: stop forcing max bpp to 24 for MST Stop forcing max supported bpp to 24 in MST usecases. Revert of I5b0e6ad86df39915073f469ea67e6addea165965. Change-Id: Ibaa55952eeb6130afcb72910ad498f44d9aca9b1 Signed-off-by: Nisarg Bhavsar --- msm/dp/dp_panel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msm/dp/dp_panel.c b/msm/dp/dp_panel.c index 1e491bec52..cfcfc3f233 100644 --- a/msm/dp/dp_panel.c +++ b/msm/dp/dp_panel.c @@ -1930,8 +1930,8 @@ static u32 dp_panel_get_supported_bpp(struct dp_panel *dp_panel, panel = container_of(dp_panel, struct dp_panel_private, dp_panel); - if (dp_panel->mst_state) - max_supported_bpp = 24; + if (dp_panel->mst_state && panel->base) + max_supported_bpp = panel->base->max_supported_bpp; if (dsc_en) min_supported_bpp = 24;