android_kernel_oneplus_msm8998/drivers/soc
Johan Hovold cb526c9ab8 soc/tegra: pmc: Fix child-node lookup
commit 1dc6bd5e39a29453bdcc17348dd2a89f1aa4004e upstream.

Fix child-node lookup during probe, which ended up searching the whole
device tree depth-first starting at the parent rather than just matching
on its children.

To make things worse, the parent pmc node could end up being prematurely
freed as of_find_node_by_name() drops a reference to its first argument.

Fixes: 3568df3d31 ("soc: tegra: Add thermal reset (thermtrip) support to PMC")
Cc: stable <stable@vger.kernel.org>     # 4.0
Cc: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-21 09:27:37 +01:00
..
brcmstb soc: brcmstb: Add Bus Interface Unit control setup 2015-10-09 13:42:16 -07:00
dove soc: dove: Let genpd deal with disabling of unused PM domains 2015-10-12 23:27:01 +02:00
mediatek soc: Mediatek: Enable SCPSYS power domain driver by default 2015-11-24 10:15:38 -08:00
qcom soc: qcom/spm: shut up uninitialized variable warning 2016-09-24 10:07:42 +02:00
rockchip soc: rockchip: power-domain: fix err handle while probing 2016-05-11 11:21:11 +02:00
sunxi drivers: soc: sunxi: Introduce SoC driver to map SRAMs 2015-06-01 17:57:34 +02:00
tegra soc/tegra: pmc: Fix child-node lookup 2018-11-21 09:27:37 +01:00
ti soc: ti: knav_qmss_queue: Fix linking RAM setup for queue managers 2015-11-23 10:36:27 -08:00
versatile drivers/soc: Convert non-modular soc-realview to use builtin_platform_driver 2015-06-16 14:12:38 -04:00
Kconfig ARM: SoC driver updates for v4.4 2015-11-10 15:00:03 -08:00
Makefile ARM: SoC driver updates for v4.4 2015-11-10 15:00:03 -08:00