[U-Boot] [PATCH 4/4] dm: core: device: switch off power domain after device removal
sjg at chromium.org
Fri Oct 11 22:28:10 UTC 2019
On Fri, 27 Sep 2019 at 02:19, Lokesh Vutla <lokeshvutla at ti.com> wrote:
> From: Anatolij Gustschin <agust at denx.de>
> 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 at denx.de>
> Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
> drivers/core/device-remove.c | 5 +++++
> 1 file changed, 5 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot