From 5c6a00264569a7b13db560b88a92ccbeedb86dae Mon Sep 17 00:00:00 2001 From: Aravind Venkateswaran Date: Wed, 24 Aug 2016 16:43:13 -0700 Subject: [PATCH] msm: mdss: dsi: fix panel minimum refresh rate configuration In the current implementation, if a DSI panel does not explicitly specify the minimum supported refresh rate, then it is set to 48 by default. This is incorrect since many panels may not support that low of a refresh rate. Fix this by setting the default value to the panel's actual refresh rate. CRs-Fixed: 1056610 Change-Id: I8d4267528068e36a648c328fbe6d6a35943f3810 Signed-off-by: Aravind Venkateswaran --- drivers/video/fbdev/msm/mdss_dsi_panel.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_dsi_panel.c b/drivers/video/fbdev/msm/mdss_dsi_panel.c index 4bd705bdc05f..6ef5b2f9ab21 100644 --- a/drivers/video/fbdev/msm/mdss_dsi_panel.c +++ b/drivers/video/fbdev/msm/mdss_dsi_panel.c @@ -27,7 +27,6 @@ #include "mdss_dba_utils.h" #define DT_CMD_HDR 6 -#define MIN_REFRESH_RATE 48 #define DEFAULT_MDP_TRANSFER_TIME 14000 #define VSYNC_DELAY msecs_to_jiffies(17) @@ -1907,10 +1906,10 @@ static int mdss_dsi_set_refresh_rate_range(struct device_node *pan_node, __func__, __LINE__); /* - * Since min refresh rate is not specified when dynamic - * fps is enabled, using minimum as 30 + * If min refresh rate is not specified, set it to the + * default panel refresh rate. */ - pinfo->min_fps = MIN_REFRESH_RATE; + pinfo->min_fps = pinfo->mipi.frame_rate; rc = 0; }