]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
of: property: Improve finding the consumer of a remote-endpoint property
authorSaravana Kannan <saravanak@google.com>
Wed, 7 Feb 2024 01:18:00 +0000 (17:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:51:25 +0000 (09:51 +0100)
commit3b4783d1f4369d1962be569bf8ed45e5464a3c8f
tree852a5520c363cc63513d0bac61c2f0274d085425
parent44eee169ae806c44930b126f1341b21a038f363c
of: property: Improve finding the consumer of a remote-endpoint property

[ Upstream commit f4653ec9861cd96a1a6a3258c4a807898ee8cf3c ]

We have a more accurate function to find the right consumer of a
remote-endpoint property instead of searching for a parent with
compatible string property. So, use that instead. While at it, make the
code to find the consumer a bit more flexible and based on the property
being parsed.

Fixes: f7514a663016 ("of: property: fw_devlink: Add support for remote-endpoint")
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20240207011803.2637531-2-saravanak@google.com
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/of/property.c