]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerInki Dae <inki.dae@samsung.com>
Mon, 1 Feb 2016 05:54:29 +0000 (14:54 +0900)
commit37e110625eeeaba83e8cb763ab7645f0678c6f8e
tree2db5f84a05dcb5edc0e3087eff6968db281426c9
parent010848a73fd87a481f263f7322e733f129ac398b
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.

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>
drivers/gpu/drm/exynos/exynos_dp_core.c