[Guam NA] Fix propagation error in dsi_display.c

Fix conditions placement error in dsi_display_disable() and
dsi_display_unprepare(), which were swapped probably due to a mistake
during propagation.

Now, the display turns on correctly and the moto extended dsi features
can be used.

The MMI_STOPSHIP will be removed from bengal-guamna-display.dtsi in a
follow-up commit.

Change-Id: If730caf231f74968037bffec89d04cb5656529a9
Signed-off-by: Joo Costa <jmcosta@motorola.com>
Reviewed-on: https://gerrit.mot.com/1925140
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-by: Sergio Vilela <sergiosv@motorola.com>
Reviewed-by: Carlos Pinho <cpinho@motorola.com>
Submit-Approved: Sergio Vilela <sergiosv@motorola.com>
This commit is contained in:
Joo Costa authored and Gilberto Gambugge committed 2023-06-01 00:43:20 -03:00
1 parent f55d542166
commit 17390af7e7
1 file changed
+2 -2
+2 -2
View File
@@ -8342,7 +8342,7 @@ int dsi_display_disable(struct dsi_display *display)
//Check is Mot early power is on going
pr_info("display %p, name %s is_dsi_mot_primary(%d)\n", display, display->name, display->is_dsi_mot_primary);
if ( display->is_dsi_mot_early_power_enabled && !display->is_dsi_display_prepared) {
if ( display->is_dsi_mot_early_power_enabled && !dsi_panel_initialized(display->panel)) {
mutex_unlock(&display->display_lock);
pr_info("panel already unprepared\n");
return rc;
@@ -8412,7 +8412,7 @@ int dsi_display_unprepare(struct dsi_display *display)
mutex_lock(&display->display_lock);
//Check if Mot early power is on going
if ( display->is_dsi_mot_early_power_enabled && !dsi_panel_initialized(display->panel)) {
if ( display->is_dsi_mot_early_power_enabled && !display->is_dsi_display_prepared) {
mutex_unlock(&display->display_lock);
pr_info("panel already disabled\n");
return rc;