[PATCH] gpu: ipu-v3: Do not bail out on missing optional port nodes
Philipp Zabel
p.zabel at pengutronix.de
Tue Jan 5 08:16:59 PST 2016
The port nodes are documented as optional, treat them accordingly.
Reported-by: Martin Fuzzey <mfuzzey at parkeon.com>
Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
Fixes: 304e6be652e2 ("gpu: ipu-v3: Assign of_node of child platform devices to corresponding ports")
---
drivers/gpu/ipu-v3/ipu-common.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c
index f2e13eb..8b248c6 100644
--- a/drivers/gpu/ipu-v3/ipu-common.c
+++ b/drivers/gpu/ipu-v3/ipu-common.c
@@ -1062,10 +1062,11 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base)
/* Associate subdevice with the corresponding port node */
pdev->dev.of_node = of_graph_get_port_by_id(dev->of_node, i);
if (!pdev->dev.of_node) {
- dev_err(dev, "missing port@%d node in %s\n", i,
- dev->of_node->full_name);
- ret = -ENODEV;
- goto err_register;
+ dev_info(dev,
+ "no port@%d node in %s, not using %s%d\n",
+ i, dev->of_node->full_name,
+ (i / 2) ? "DI" : "CSI", i % 2);
+ continue;
}
ret = platform_device_add_data(pdev, ®->pdata,
--
2.6.4
More information about the dri-devel
mailing list