disp: msm: dsi: add missing trusted vm check

Need to check trusted VM environment when loading DSI
firmware. Add this missing check due to propagation
issue.

Change-Id: I7c84b487a58133df49ba23e80e6b6ff8783cdf6c
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
This commit is contained in:
Ray Zhang
2020-09-18 10:21:36 +08:00
committed by Jeykumar Sankaran
vanhempi 1a11e07ee4
commit b818229a2f

Näytä tiedosto

@@ -5780,7 +5780,9 @@ int dsi_display_dev_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, display);
/* initialize display in firmware callback */
if (!boot_disp->boot_disp_en && IS_ENABLED(CONFIG_DSI_PARSER)) {
if (!boot_disp->boot_disp_en &&
IS_ENABLED(CONFIG_DSI_PARSER) &&
!display->trusted_vm_env) {
firm_req = !request_firmware_nowait(
THIS_MODULE, 1, "dsi_prop",
&pdev->dev, GFP_KERNEL, display,