Let LCM reduce power consumption when suspend
Root cause:
Some patch I miss to add Android Q form Android P
http://review3.arimacomm.com.tw:8080/c/kernel/msm-4.9/+/98211
How to fix:
Feature:
Issue:
Depends-On:
Change-Id: Ieaca233d9ef78cb2df8eaf6c016b3aee7a35660a
RiskArea:
diff --git a/drivers/video/fbdev/msm/mdss_dsi.c b/drivers/video/fbdev/msm/mdss_dsi.c
index 6876894..24969fd 100644
--- a/drivers/video/fbdev/msm/mdss_dsi.c
+++ b/drivers/video/fbdev/msm/mdss_dsi.c
@@ -405,6 +405,9 @@
if (ret)
pr_err("%s: failed to disable vregs for %s\n",
__func__, __mdss_dsi_pm_name(DSI_PANEL_PM));
+ /*[Fairphone_8901][Jialong]To reduce power,pull down Touch reset pin when panel off start*/
+ gpio_direction_output(64, 0);
+ /*[Fairphone_8901][Jialong]To reduce power,pull down Touch reset pin when panel off end*/
end:
return ret;
@@ -419,7 +422,6 @@
gpio_direction_output(64, 1);
/*[Fairphone_8901][Jialong]To avoid fuzzy screen,pull high Touch reset pin when panel on end*/
-
if (pdata == NULL) {
pr_err("%s: Invalid input data\n", __func__);
return -EINVAL;