diff options
author | Anatolij Gustschin <agust@denx.de> | 2019-09-27 13:48:15 +0530 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-10-15 08:40:03 -0600 |
commit | 52edfed65de967a86983a55c51ba0727090efc43 (patch) | |
tree | 9c11b27f24155ddfad86ea477046d4b05c2c50c2 /drivers/pinctrl/pinctrl-uclass.c | |
parent | 0cf795a8024f36e2aaea3db8ab8b4d3805dc541c (diff) |
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-uclass.c')
0 files changed, 0 insertions, 0 deletions