drm/msm/dsi: stop calling set_encoder_mode callback
None of the display drivers now implement set_encoder_mode callback. Stop calling it from the modeset init code. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org> Link: https://lore.kernel.org/r/20210717124016.316020-7-dmitry.baryshkov@linaro.org Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
9b6ce7db0d
commit
ef2cd4273f
|
@ -251,8 +251,6 @@ int msm_dsi_modeset_init(struct msm_dsi *msm_dsi, struct drm_device *dev,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
msm_dsi_manager_setup_encoder(msm_dsi->id);
|
|
||||||
|
|
||||||
priv->bridges[priv->num_bridges++] = msm_dsi->bridge;
|
priv->bridges[priv->num_bridges++] = msm_dsi->bridge;
|
||||||
priv->connectors[priv->num_connectors++] = msm_dsi->connector;
|
priv->connectors[priv->num_connectors++] = msm_dsi->connector;
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,6 @@ struct drm_connector *msm_dsi_manager_connector_init(u8 id);
|
||||||
struct drm_connector *msm_dsi_manager_ext_bridge_init(u8 id);
|
struct drm_connector *msm_dsi_manager_ext_bridge_init(u8 id);
|
||||||
int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg);
|
int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg);
|
||||||
bool msm_dsi_manager_cmd_xfer_trigger(int id, u32 dma_base, u32 len);
|
bool msm_dsi_manager_cmd_xfer_trigger(int id, u32 dma_base, u32 len);
|
||||||
void msm_dsi_manager_setup_encoder(int id);
|
|
||||||
int msm_dsi_manager_register(struct msm_dsi *msm_dsi);
|
int msm_dsi_manager_register(struct msm_dsi *msm_dsi);
|
||||||
void msm_dsi_manager_unregister(struct msm_dsi *msm_dsi);
|
void msm_dsi_manager_unregister(struct msm_dsi *msm_dsi);
|
||||||
bool msm_dsi_manager_validate_current_config(u8 id);
|
bool msm_dsi_manager_validate_current_config(u8 id);
|
||||||
|
|
|
@ -215,18 +215,6 @@ static int dsi_mgr_bridge_get_id(struct drm_bridge *bridge)
|
||||||
return dsi_bridge->id;
|
return dsi_bridge->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
void msm_dsi_manager_setup_encoder(int id)
|
|
||||||
{
|
|
||||||
struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id);
|
|
||||||
struct msm_drm_private *priv = msm_dsi->dev->dev_private;
|
|
||||||
struct msm_kms *kms = priv->kms;
|
|
||||||
struct drm_encoder *encoder = msm_dsi_get_encoder(msm_dsi);
|
|
||||||
|
|
||||||
if (encoder && kms->funcs->set_encoder_mode)
|
|
||||||
kms->funcs->set_encoder_mode(kms, encoder,
|
|
||||||
msm_dsi_is_cmd_mode(msm_dsi));
|
|
||||||
}
|
|
||||||
|
|
||||||
static int msm_dsi_manager_panel_init(struct drm_connector *conn, u8 id)
|
static int msm_dsi_manager_panel_init(struct drm_connector *conn, u8 id)
|
||||||
{
|
{
|
||||||
struct msm_drm_private *priv = conn->dev->dev_private;
|
struct msm_drm_private *priv = conn->dev->dev_private;
|
||||||
|
|
Loading…
Reference in New Issue