mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
disp: msm: sde: add check for max encoder limit during allocation
This change checks max limit while allocating encoders during display init. Change-Id: I48736667c2b83f916f09f9e81cb1b24a9fef215a Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
This commit is contained in:
parent
45e57a9f87
commit
5792eb97d1
1 changed files with 3 additions and 1 deletions
|
|
@ -1489,7 +1489,9 @@ static int _sde_kms_setup_displays(struct drm_device *dev,
|
|||
|
||||
/* update display cap to MST_MODE for DP MST encoders */
|
||||
info.capabilities |= MSM_DISPLAY_CAP_MST_MODE;
|
||||
for (idx = 0; idx < sde_kms->dp_stream_count; idx++) {
|
||||
|
||||
for (idx = 0; idx < sde_kms->dp_stream_count &&
|
||||
priv->num_encoders < max_encoders; idx++) {
|
||||
info.h_tile_instance[0] = idx;
|
||||
encoder = sde_encoder_init(dev, &info);
|
||||
if (IS_ERR_OR_NULL(encoder)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue