Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efd2e783 authored by Aravind Venkateswaran's avatar Aravind Venkateswaran Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarAravind Venkateswaran <aravindh@codeaurora.org>
parent fc5a098f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@
#include "mdss_dba_utils.h"
#endif
#define DT_CMD_HDR 6
#define MIN_REFRESH_RATE 48
#define DEFAULT_MDP_TRANSFER_TIME 14000

#define VSYNC_DELAY msecs_to_jiffies(17)
@@ -2146,10 +2145,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;
	}