disp: msm: only set nolp command when panel in LP1/LP2 mode

DSI driver sends nolp commands when DSI connector power
modes is set SDE_MODE_DPMS_ON or SDE_MODE_DPMS_OFF. This
is invalid panel configuration. It should only send nolp
commmand to panel when it is in LP1/LP2 mode.

Change-Id: Ie94eaef6899d292fd20f42c1b7ef2c7a99178d13
Signed-off-by: Wenjun Zhang <wjzhan@codeaurora.org>
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
This commit is contained in:
Yuan Zhao
2019-05-15 16:36:24 +08:00
committed by Gerrit - the friendly Code Review server
parent daf414d4cf
commit f2873cd69f
3 changed files with 16 additions and 2 deletions

View File

@@ -198,6 +198,7 @@ struct dsi_panel {
bool sync_broadcast_en;
int panel_test_gpio;
int power_mode;
};
static inline bool dsi_panel_ulps_feature_enabled(struct dsi_panel *panel)