Skip to contentSkip to conversation

DRM: i.MX: parallel display: Support probe deferral for finding DRM panel

PATCH In review Liu Ying 2 participants 2 messages Feb 23, 2015

Subsystems (3)
lore
Share & tools
lore

Liu Ying

author
#0 lore raw

PATCH 1/1 DRM: i.MX: parallel display: Support probe deferral for finding DRM panel

---
 drivers/gpu/drm/imx/parallel-display.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/imx/parallel-display.c +4 -1
index 5e83e00..900dda6 100644
@@ -236,8 +236,11 @@ static int imx_pd_bind(struct device *dev, struct device *master, void *data)
 	}
 
 	panel_node = of_parse_phandle(np, "fsl,panel", 0);
-	if (panel_node)
+	if (panel_node) {
 		imxpd->panel = of_drm_find_panel(panel_node);
+		if (!imxpd->panel)
+			return -EPROBE_DEFER;
+	}
 
 	imxpd->dev = dev;
 
Signature · 6 lines
2.1.0

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi,

Am Montag, den 23.02.2015, 11:09 +0800 schrieb Liu Ying:

Quoted 1 line

thank you for the patch. I've applied it to my branch.

drivers/gpu/drm/imx/parallel-display.c static int imx_pd_bind(struct device *dev, struct device *master, void *data) · line 238

Quoted 12 lines
---
 drivers/gpu/drm/imx/parallel-display.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/imx/parallel-display.c +0 -0
index 5e83e00..900dda6 100644
@@ -236,8 +236,11 @@ static int imx_pd_bind(struct device *dev, struct device *master, void *data)
 	}
 
 	panel_node = of_parse_phandle(np, "fsl,panel", 0);

This property is not documented anywhere and I'd like to get rid of this in the future. This should be replaced with of graph endpoint links.

regards
Philipp

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel