Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b818229a authored by Ray Zhang's avatar Ray Zhang Committed by Jeykumar Sankaran
Browse files

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: default avatarRay Zhang <rayz@codeaurora.org>
parent 1a11e07e
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -5780,7 +5780,9 @@ int dsi_display_dev_probe(struct platform_device *pdev)
	platform_set_drvdata(pdev, display);
	platform_set_drvdata(pdev, display);


	/* initialize display in firmware callback */
	/* 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(
		firm_req = !request_firmware_nowait(
			THIS_MODULE, 1, "dsi_prop",
			THIS_MODULE, 1, "dsi_prop",
			&pdev->dev, GFP_KERNEL, display,
			&pdev->dev, GFP_KERNEL, display,