Commit 896ddd600ba4a3426aeb11710ae9c28dd7ce68ce

Authored by Abhilash Kesavan
Committed by Olof Johansson
1 parent 6fda93b95e

drivers: bus: check cci device tree node status

The arm-cci driver completes the probe sequence even if the cci node is
marked as disabled. Add a check in the driver to honour the cci status
in the device tree.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

drivers/bus/arm-cci.c
... ... @@ -1312,6 +1312,9 @@
1312 1312 if (!np)
1313 1313 return -ENODEV;
1314 1314  
  1315 + if (!of_device_is_available(np))
  1316 + return -ENODEV;
  1317 +
1315 1318 cci_config = of_match_node(arm_cci_matches, np)->data;
1316 1319 if (!cci_config)
1317 1320 return -ENODEV;