提交 a132b5a5 编写于 作者: S Sjoerd Simons 提交者: Jyri Sarha

drm/tilcdc: Defer probe if there are no connectors

During probe there may not be any connectors yet if e.g. the panel
failed or hasn't been probed yet. I hitting this in practice the panels
probing was being delayed due to using a gpio backlight.

Fix this by returning -EPROBE_DEFER so the probing will be retried.
Signed-off-by: NSjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: NJyri Sarha <jsarha@ti.com>
上级 021c9179
...@@ -378,7 +378,7 @@ static int tilcdc_init(struct drm_driver *ddrv, struct device *dev) ...@@ -378,7 +378,7 @@ static int tilcdc_init(struct drm_driver *ddrv, struct device *dev)
if (!priv->external_connector && if (!priv->external_connector &&
((priv->num_encoders == 0) || (priv->num_connectors == 0))) { ((priv->num_encoders == 0) || (priv->num_connectors == 0))) {
dev_err(dev, "no encoders/connectors found\n"); dev_err(dev, "no encoders/connectors found\n");
ret = -ENXIO; ret = -EPROBE_DEFER;
goto init_failed; goto init_failed;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册