mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 20:03:33 -04:00
disp: msm: sde: get_modes from connector if not present
In case of external bridges, modes are not available for setting splash_mode. Add support to get modes supported by the external bridges. Change-Id: Ib17e17bcf1ec91b582da2e0cf5d648b9c366b292 Signed-off-by: Gopi Botlagunta <quic_botlagun@quicinc.com>
This commit is contained in:
parent
b19d4a3a8e
commit
b749468a5a
1 changed files with 11 additions and 2 deletions
|
|
@ -3489,11 +3489,20 @@ static int sde_kms_cont_splash_config(struct msm_kms *kms,
|
|||
mutex_unlock(&dev->mode_config.mutex);
|
||||
return -EINVAL;
|
||||
}
|
||||
mutex_unlock(&dev->mode_config.mutex);
|
||||
|
||||
crtc->state->encoder_mask = (1 << drm_encoder_index(encoder));
|
||||
/* get supported modes in case of external bridge panels*/
|
||||
if (!dsi_display->panel->num_timing_nodes) {
|
||||
connector->funcs->fill_modes(connector,
|
||||
dev->mode_config.max_width,
|
||||
dev->mode_config.max_height);
|
||||
drm_mode = list_first_entry(&connector->modes,
|
||||
struct drm_display_mode, head);
|
||||
}
|
||||
else
|
||||
drm_mode = _sde_kms_get_splash_mode(sde_kms, connector, state);
|
||||
|
||||
drm_mode = _sde_kms_get_splash_mode(sde_kms, connector, state);
|
||||
mutex_unlock(&dev->mode_config.mutex);
|
||||
if (!drm_mode) {
|
||||
SDE_ERROR("drm_mode not found; handoff_type:%d\n",
|
||||
sde_kms->splash_data.type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue