disp: msm: sde: pass disp info to setup vsync source

While setting up vsync source, display info is used to decide whether
or not watchdog TE should be used. This change passes display info
as a parameter to vsync setup rather than using the encoder's display
info which is not updated in the case of panel dead error.

Change-Id: I928ee2012eec7bf63f4ba3538082bc3e47d5e99d
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
Samantha Tran
2021-05-24 14:49:20 -07:00
parent 72f7dfe428
commit f5a91ba3b3
3 changed files with 6 additions and 5 deletions

View File

@@ -1342,7 +1342,7 @@ static void _sde_encoder_update_vsync_source(struct sde_encoder_virt *sde_enc,
phys = sde_enc->phys_encs[i];
if (phys && phys->ops.setup_vsync_source)
phys->ops.setup_vsync_source(phys, vsync_source);
phys->ops.setup_vsync_source(phys, vsync_source, disp_info);
}
}
}