[RFC 2/2] Revert "dm: core: device: switch off power domain after device removal"

Anatolij Gustschin agust at denx.de
Fri Feb 14 11:14:13 CET 2020


On Fri, 14 Feb 2020 11:01:54 +0100
Anatolij Gustschin agust at denx.de wrote:
...
> My original patch v3 had this additional condition for power domain off:
> 
>  (device_get_uclass_id(dev) != UCLASS_POWER_DOMAIN)

The debug log generated without the above condition:

device_remove: OFF 'clk', uclass pd 0
device_remove: OFF 'gpioledsgrp', uclass pd 0
device_remove: OFF 'lpi2c0grp', uclass pd 0
device_remove: OFF 'lpi2c1grp', uclass pd 0
device_remove: OFF 'lpuart2grp', uclass pd 0
device_remove: OFF 'usdhc1grp', uclass pd 0
device_remove: OFF 'fec2grp', uclass pd 0
device_remove: OFF 'imx8qxp-som', uclass pd 0
device_remove: OFF 'iomuxc', uclass pd 0
device_remove: OFF 'mu at 5d1c0000', uclass pd 0
device_remove: OFF 'lsio_gpio0', uclass pd 1
device_remove: OFF 'lsio_gpio0', uclass pd 1
device_remove: OFF 'lsio_gpio0', uclass pd 1
device_remove: OFF 'lsio_gpio0', uclass pd 1
device_remove: OFF 'lsio_gpio0', uclass pd 1
device_remove: OFF 'lsio_gpio0', uclass pd 1
device_remove: OFF 'lsio_gpio0', uclass pd 1
device_remove: OFF 'lsio_gpio0', uclass pd 1
...
Here it is stuck in an endless recursion for lsio_gpio0 device remove.

--
Anatolij


More information about the U-Boot mailing list