dm: core: Add a flag for power domain control on device removal
authorAnatolij Gustschin <agust@denx.de>
Mon, 17 Feb 2020 11:36:43 +0000 (12:36 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 3 Mar 2020 02:47:38 +0000 (19:47 -0700)
commit5349e255ff913971d8b812eb363da62eace169bc
tree3b4a909fff3b367bdea965a2a9bf5198cbd8091b
parent8aad16916d04e3db0d1652cb96e840e209e19252
dm: core: Add a flag for power domain control on device removal

In various cases a power domain must stay enabled after device
removal when booting OS (i.e. serial debug console or display).
Add a flag to selectively skip switching off a power domain.

Fixes: 52edfed65de9 ("dm: core: device: switch off power domain after device removal")
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Guillaume La Roque <glaroque@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device-remove.c
include/dm/device.h