dm: core: Allow for not controlling the power-domain by DM framework
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 27 Sep 2019 08:18:12 +0000 (13:48 +0530)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:03 +0000 (08:40 -0600)
commitaf94ad418dc72957d3b7398d83bfc5a1efd415db
treec99f1c80c70def1aca9b42cac1c0a3acffd1bc47
parentd8efa2ce2abe293c97576f47ccac708e233553b6
dm: core: Allow for not controlling the power-domain by DM framework

In some remoteproc cases, enabling the power domain of the core will
start running the core. In such cases image should be loaded before
enabling the power domain. But the current DM framework enables the
power-domain by default during probe. This is causing the remotecore
to start and crash as there is no valid image loaded.

In order to avoid this introduce a DM flag that doesn't allow for
enabling/disabling the power-domain by DM framework.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
include/dm/device.h