drm/bridge: Fix assignment of the of_node of the parent to aux bridge
commit85e444a68126a631221ae32c63fce882bb18a262
authorAbel Vesa <abel.vesa@linaro.org>
Fri, 18 Oct 2024 12:49:34 +0000 (18 15:49 +0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 21 Oct 2024 12:59:48 +0000 (21 14:59 +0200)
tree1ec7f5fe75046d1839e98a8efe566f507dc9f27f
parent83f000784844cb9d4669ef1a3366479db3197b33
drm/bridge: Fix assignment of the of_node of the parent to aux bridge

The assignment of the of_node to the aux bridge needs to mark the
of_node as reused as well, otherwise resource providers like pinctrl will
report a gpio as already requested by a different device when both pinconf
and gpios property are present.
Fix that by using the device_set_of_node_from_dev() helper instead.

Fixes: 6914968a0b52 ("drm/bridge: properly refcount DT nodes in aux bridge drivers")
Cc: stable@vger.kernel.org # 6.8
Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20241018-drm-aux-bridge-mark-of-node-reused-v2-1-aeed1b445c7d@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241018-drm-aux-bridge-mark-of-node-reused-v2-1-aeed1b445c7d@linaro.org
drivers/gpu/drm/bridge/aux-bridge.c