From 748047743e96a453d17834c78db3e786d742a353 Mon Sep 17 00:00:00 2001 From: Rajeev Nandan Date: Fri, 5 Feb 2021 10:20:34 +0530 Subject: [PATCH] disp: msm: dsi: change rule to initialize display in firmware Request for display in firmware only if no display enabled form the UEFI. In the targets supporting dual DSI display having both displays DT nodes part of the connector list, if only one display is enabled from the UEFI, then the driver requests for display in firmware for the second display. Getting the display panel node from firmware is time taking process, and it can take up to ten seconds. This causes a delay in adding the component for the second display, resulting in a delay in bind calls for components of the msm drm driver. Change-Id: Ic0aa5ca890fc874d38d3e7eef745f2942e12f9bc Signed-off-by: Rajeev Nandan --- msm/dsi/dsi_display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index bddd0e07f0fd..21850ddea95a 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -5923,7 +5923,8 @@ 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 && + if (!(boot_displays[DSI_PRIMARY].boot_disp_en || + boot_displays[DSI_SECONDARY].boot_disp_en) && IS_ENABLED(CONFIG_DSI_PARSER) && !display->trusted_vm_env) { if (!strcmp(display->display_type, "primary"))