u-boot/drivers/power/domain
Sean Anderson 847990219c power-domain: Fix use of uninitialized value in dev_power_domain_ctrl
If dev_count_phandle_with_args returns 0 or another error, then pd will never
have been initialized by power_domain_get_by_index. Avoid comparing against
pd.dev in this situation.

Fixes: 3e4fcfa4bc ("power-domain: fix hang in endless loop on i.MX8")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
2022-04-22 21:19:21 +09:00
..
apple-pmgr.c power: domain: apple: Add reset support 2022-02-10 16:44:23 -05:00
bcm6328-power-domain.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
imx8-power-domain-legacy.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8-power-domain.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
imx8m-power-domain.c imx: power-domain: Add fsl,imx8mn-gpc compatible string 2021-04-18 04:29:36 +02:00
Kconfig power: zynqmp: Add power domain driver for ZynqMP 2022-02-15 13:01:42 +01:00
Makefile power: zynqmp: Add power domain driver for ZynqMP 2022-02-15 13:01:42 +01:00
meson-ee-pwrc.c - sync amlogic GX & AXG DT to Linux 5.10 2021-01-13 07:32:02 -05:00
meson-gx-pwrc-vpu.c dm: core: Access device ofnode through functions 2021-01-05 12:24:41 -07:00
mtk-power-domain.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
power-domain-uclass.c power-domain: Fix use of uninitialized value in dev_power_domain_ctrl 2022-04-22 21:19:21 +09:00
sandbox-power-domain-test.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sandbox-power-domain.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
tegra186-power-domain.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ti-power-domain.c power: domain: ti: Extend use of PTCMD and PTSTAT registers for high PDs 2022-04-14 15:39:14 -04:00
ti-sci-power-domain.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
zynqmp-power-domain.c power: zynqmp: Use zynqmp_pmufw_node() from firmware 2022-03-07 16:33:47 +01:00