drm/sun4i: Don't check for LVDS and RGB when TCON has only ch1
LVDS and RGB interfaces are always connected to TCONs which have channel 0. It doesn't make sense to try to init them on TV TCONs. Add a check if TCON has channel 0 before trying to init LVDS or RGB interface. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180625120304.7543-12-jernej.skrabec@siol.net
This commit is contained in:
parent
49836b11fe
commit
2a72d0c579
|
@ -1106,6 +1106,7 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
|
||||||
goto err_free_dotclock;
|
goto err_free_dotclock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tcon->quirks->has_channel_0) {
|
||||||
/*
|
/*
|
||||||
* If we have an LVDS panel connected to the TCON, we should
|
* If we have an LVDS panel connected to the TCON, we should
|
||||||
* just probe the LVDS connector. Otherwise, just probe RGB as
|
* just probe the LVDS connector. Otherwise, just probe RGB as
|
||||||
|
@ -1123,6 +1124,7 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto err_free_dotclock;
|
goto err_free_dotclock;
|
||||||
|
}
|
||||||
|
|
||||||
if (tcon->quirks->needs_de_be_mux) {
|
if (tcon->quirks->needs_de_be_mux) {
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue