• Javier Martinez Canillas's avatar
    drm/exynos: dp: Fix panel and bridge lookup logic · 37e11062
    Javier Martinez Canillas authored
    Commit a9fa8528 ("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: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
    Tested-by: default avatarMichal Suchanek <hramrach@gmail.com>
    Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
    37e11062
exynos_dp_core.c 35.9 KB