]> www.infradead.org Git - users/dwmw2/linux.git/commit
of: property: Do not link to disabled devices
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Mon, 20 Apr 2020 12:01:02 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:37 +0000 (17:48 +0200)
commit20aeada72fc3bf1e88d1f91c6e8d8a5837c2c6d7
treedccbfd7a84bc132464b1c13dd67ed30ca14db502
parente58c0f4bed26e7041d8fc475e063f58d64324297
of: property: Do not link to disabled devices

[ Upstream commit 7456427af9def0fec5508dd8b861556038ee96a8 ]

When creating a consumer/supplier relationship between two devices,
make sure the supplier node is actually active. Otherwise this will
create a link relationship that will never be fulfilled. This, in the
worst case scenario, will hang the system during boot.

Note that, in practice, the fact that a device-tree represented
consumer/supplier relationship isn't fulfilled will not prevent devices
from successfully probing.

Fixes: a3e1d1a7f5fc ("of: property: Add functional dependency link from DT bindings")
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/of/property.c