[Intel-xe] [PATCH 1/1] fixup! drm/xe/display: Implement display support

Gustavo Sousa gustavo.sousa at intel.com
Wed Sep 6 20:00:49 UTC 2023


The function xe_display_driver_probe_defer() is supposed to return
-EPROBE_DEFER when not yet ready to continue the probing, but the
current implementation is actually returning 1 instead of the proper
value, which would probably keep the probe operation to be attempted
again. Fix that by returning the expected value in case we need to defer
the probe.

Signed-off-by: Gustavo Sousa <gustavo.sousa at intel.com>
---
 drivers/gpu/drm/xe/xe_display.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_display.c b/drivers/gpu/drm/xe/xe_display.c
index a453946ad108..bf475f9a7e14 100644
--- a/drivers/gpu/drm/xe/xe_display.c
+++ b/drivers/gpu/drm/xe/xe_display.c
@@ -45,7 +45,10 @@ int xe_display_driver_probe_defer(struct pci_dev *pdev)
 	if (!enable_display)
 		return 0;
 
-	return intel_display_driver_probe_defer(pdev);
+	if (intel_display_driver_probe_defer(pdev))
+		return -EPROBE_DEFER;
+
+	return 0;
 }
 
 static void xe_display_last_close(struct drm_device *dev)
-- 
2.41.0



More information about the Intel-xe mailing list