of: property: Improve finding the supplier of a remote-endpoint property
authorSaravana Kannan <saravanak@google.com>
Wed, 7 Feb 2024 01:18:01 +0000 (17:18 -0800)
committerRob Herring <robh@kernel.org>
Fri, 9 Feb 2024 10:32:09 +0000 (10:32 +0000)
commit782bfd03c3ae2c0e6e01b661b8e18f1de50357be
tree45543f2e11e61f2f021fd3e1a0fee07ac845bf9c
parentf4653ec9861cd96a1a6a3258c4a807898ee8cf3c
of: property: Improve finding the supplier of a remote-endpoint property

After commit 4a032827daa8 ("of: property: Simplify of_link_to_phandle()"),
remote-endpoint properties created a fwnode link from the consumer device
to the supplier endpoint. This is a tiny bit inefficient (not buggy) when
trying to create device links or detecting cycles. So, improve this the
same way we improved finding the consumer of a remote-endpoint property.

Fixes: 4a032827daa8 ("of: property: Simplify of_link_to_phandle()")
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20240207011803.2637531-3-saravanak@google.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/property.c