Commit 425a2d24 authored by Abhinav Kumar's avatar Abhinav Kumar Committed by Sean Paul

drm/msm/dsi: set encoder mode for DRM bridge explicitly

Currently, DRM bridge for DPU relies on the default video
mode setting to set the encoder mode.

Add an explicit call to set the encoder mode for bridges.

Changes in v3:
- None
Reviewed-by: default avatarArchit Taneja <architt@codeauorora.org>
Signed-off-by: default avatarAbhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 7a296796
...@@ -773,6 +773,7 @@ void msm_dsi_manager_attach_dsi_device(int id, u32 device_flags) ...@@ -773,6 +773,7 @@ void msm_dsi_manager_attach_dsi_device(int id, u32 device_flags)
struct msm_drm_private *priv; struct msm_drm_private *priv;
struct msm_kms *kms; struct msm_kms *kms;
struct drm_encoder *encoder; struct drm_encoder *encoder;
bool cmd_mode;
/* /*
* drm_device pointer is assigned to msm_dsi only in the modeset_init * drm_device pointer is assigned to msm_dsi only in the modeset_init
...@@ -787,10 +788,11 @@ void msm_dsi_manager_attach_dsi_device(int id, u32 device_flags) ...@@ -787,10 +788,11 @@ void msm_dsi_manager_attach_dsi_device(int id, u32 device_flags)
priv = dev->dev_private; priv = dev->dev_private;
kms = priv->kms; kms = priv->kms;
encoder = msm_dsi_get_encoder(msm_dsi); encoder = msm_dsi_get_encoder(msm_dsi);
cmd_mode = !(device_flags &
MIPI_DSI_MODE_VIDEO);
if (encoder && kms->funcs->set_encoder_mode) if (encoder && kms->funcs->set_encoder_mode)
if (!(device_flags & MIPI_DSI_MODE_VIDEO)) kms->funcs->set_encoder_mode(kms, encoder, cmd_mode);
kms->funcs->set_encoder_mode(kms, encoder, true);
} }
int msm_dsi_manager_register(struct msm_dsi *msm_dsi) int msm_dsi_manager_register(struct msm_dsi *msm_dsi)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment