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

Commit 00715485 authored by Dhaval Patel's avatar Dhaval Patel Committed by Narendra Muppalla
Browse files

drm/dsi: turn off the wled backlight with panel power off



LAB/IBB regulator subsequent enable is failing when wled
backlight is left on with panel power off sequence. This
blocks the back to back atomic commit operation with device
open and close. Current change turns off the wled backlight
during panel power off sequence to unblock the back to back
atomic commit operation.

Change-Id: I47fb72be00fe8c1ac2234c04c58183de0e84e6be
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 4fc756b6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -238,7 +238,6 @@ static int dsi_panel_power_off(struct dsi_panel *panel)
	if (rc)
		pr_err("[%s] failed to enable vregs, rc=%d\n", panel->name, rc);

	/* TODO:  backlight */
	return rc;
}
static int dsi_panel_tx_cmd_set(struct dsi_panel *panel,
@@ -1858,6 +1857,8 @@ int dsi_panel_pre_disable(struct dsi_panel *panel)

	mutex_lock(&panel->panel_lock);

	/* TODO:  hack to disable backlight; */
	led_trigger_event(panel->bl_config.wled, 0x0);
	rc = dsi_panel_tx_cmd_set(panel, DSI_CMD_SET_PRE_OFF);
	if (rc) {
		pr_err("[%s] failed to send DSI_CMD_SET_PRE_OFF cmds, rc=%d\n",