UPSTREAM: drm/exynos: dp: Fix panel and bridge lookup logic
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 29 Jan 2016 15:09:31 +0000 (12:09 -0300)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 21 Mar 2016 09:33:21 +0000 (17:33 +0800)
commit201af89bcf15ab1bc52a8b65dbd61d2548e6e991
tree4b38a344b9b69ea815e300f5b88c014cecebab5a
parent41c33419630122ae09b1cd357a2da16fb02a95c0
UPSTREAM: drm/exynos: dp: Fix panel and bridge lookup logic

Commit a9fa852886fd ("drm/exynos: dp: add of_graph dt binding support
for panel") made the Exynos DP DT binding more consistent since the OF
graph could be used to lookup either a panel or a bridge device node.

Before that commit, a panel would be looked up using a phandle and a
bridge using the OF graph which made the DT binding not consistent.

But the patch broke the later case since not finding a panel dev node
would cause the driver's to do a probe deferral instead of attempting
to lookup a bridge device node associated with the remote endpoint.

So instead of returning a -EPROBE_DEFER if a panel is not found, check
if there's a bridge and only do a probe deferral if both aren't found.

(cherry picked from commit 37e110625eeeaba83e8cb763ab7645f0678c6f8e)

Change-Id: If8b66d792447d4e3455f99dc38b04f334b8b65a6
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Michal Suchanek <hramrach@gmail.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
drivers/gpu/drm/exynos/exynos_dp_core.c