u-boot/drivers/core
Anatolij Gustschin 52edfed65d dm: core: device: switch off power domain after device removal
The power domain associated with a device is enabled when probing,
but currently the domain remains enabled when the device is removed.
Some boards started to disable power domains for selected devices
via custom board_quiesce_devices(), but it doesn't work in many
cases, i. e. because devices still can be accessed later in
.remove() callback on behalf of dm_remove_devices_flags().

Utilize the DM core to power off the device power domain, but add a
device flag to be able to selectively let the power domain enabled
after device removal. This might be required for devices that must
remain enabled when booting OS, i. e. serial console for debug
output, etc.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2019-10-15 08:40:03 -06:00
..
device-remove.c dm: core: device: switch off power domain after device removal 2019-10-15 08:40:03 -06:00
device.c dm: core: Allow for not controlling the power-domain by DM framework 2019-10-15 08:40:03 -06:00
devres.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dump.c dm: Tidy up 'dm tree' output when there are many devices 2019-01-14 17:47:13 -07:00
fdtaddr.c dm: core: Drop fdtdec_get_pci_addr() 2019-10-08 13:57:47 +08:00
Kconfig Kconfig: Varios: Fix more SPL, TPL dependencies 2019-08-26 11:46:29 -04:00
lists.c dm: core: Use U-Boot logging instead of pr_debug() 2019-10-08 13:57:37 +08:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
of_access.c dm: core: Add of_alias_get_highest_id() 2019-02-08 06:24:57 +01:00
of_addr.c dm: core: Introduce xxx_translate_dma_address() 2019-07-22 09:21:28 +02:00
of_extra.c dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
ofnode.c dm: core: Correct bad cast in ofnode_get_addr_size_index() 2019-10-03 21:10:53 +08:00
read.c dm: pci: Add a function to read a PCI BAR 2019-10-08 13:57:43 +08:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c regmap: Add API regmap_init_mem_index() 2019-07-17 11:12:08 -04:00
root.c dm: core: Decouple DM from DT 2019-09-02 17:38:42 +02:00
simple-bus.c simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver 2019-04-23 20:26:43 -06:00
syscon-uclass.c syscon: update syscon_regmap_lookup_by_phandle 2019-04-11 20:10:05 -06:00
uclass.c dm: device: Request next sequence number 2019-10-15 08:40:02 -06:00
util.c dm: core: Decouple DM from DT 2019-09-02 17:38:42 +02:00