mdss: fix dynamic FPS mode switch configuration
For dual DSI panels, DFPS mode switch configuration through sysfs is not properly enabled for the second DSI interface. Fix this by initializing the mode switch update variable. While changing the DFPS mode, idle-time should be disabled and the device should be configured to default FPS. Add these checks when DFPS mode switch is initiated. Change-Id: Ib9e67f20758e2fb1c72a747c31109364db1d1160 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
This commit is contained in:
parent
e8ffd14c5d
commit
f7bad5e06a
1 changed files with 13 additions and 0 deletions
|
@ -712,9 +712,22 @@ static ssize_t mdss_fb_change_dfps_mode(struct device *dev,
|
|||
return len;
|
||||
}
|
||||
|
||||
if (mfd->idle_time != 0) {
|
||||
pr_err("ERROR: Idle time is not disabled.\n");
|
||||
return len;
|
||||
}
|
||||
|
||||
if (pinfo->current_fps != pinfo->default_fps) {
|
||||
pr_err("ERROR: panel not configured to default fps\n");
|
||||
return len;
|
||||
}
|
||||
|
||||
pinfo->dynamic_fps = true;
|
||||
pinfo->dfps_update = dfps_mode;
|
||||
|
||||
if (pdata->next)
|
||||
pdata->next->panel_info.dfps_update = dfps_mode;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue