OSDN Git Service

Revert "drm: of: Lookup if child node has panel or bridge"
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 20 Apr 2022 23:12:30 +0000 (16:12 -0700)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 21 Apr 2022 07:18:08 +0000 (09:18 +0200)
commitb089c0a9b14c354a0c3a421e09af3208cb7c232c
treefe2473bcdd22788a7a12cc5d6621c328ad39a0ca
parent169466d4e59ca204683998b7f45673ebf0eb2de6
Revert "drm: of: Lookup if child node has panel or bridge"

Commit '80253168dbfd ("drm: of: Lookup if child node has panel or
bridge")' attempted to simplify the case of expressing a simple panel
under a DSI controller, by assuming that the first non-graph child node
was a panel or bridge.

Unfortunately for non-trivial cases the first child node might not be a
panel or bridge.  Examples of this can be a aux-bus in the case of
DisplayPort, or an opp-table represented before the panel node.

In these cases the reverted commit prevents the caller from ever finding
a reference to the panel.

This reverts commit '80253168dbfd ("drm: of: Lookup if child node has
panel or bridge")', in favor of using an explicit graph reference to the
panel in the trivial case as well.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220420231230.58499-2-bjorn.andersson@linaro.org
drivers/gpu/drm/drm_of.c