summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorAravind Venkateswaran <aravindh@codeaurora.org>2016-08-24 16:43:13 -0700
committerAravind Venkateswaran <aravindh@codeaurora.org>2016-08-25 17:30:25 -0700
commit5c6a00264569a7b13db560b88a92ccbeedb86dae (patch)
tree6768f11153fce6f4bc9c1e319a7a55202316d85c /drivers/video/fbdev
parente97b6a0e0217f7c072fdad6c50673cd7a64348e1 (diff)
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 <aravindh@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_dsi_panel.c7
1 files 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;
}