MLK-20945-2 dm: device: Check the power up result in probe
authorYe Li <ye.li@nxp.com>
Tue, 19 Feb 2019 07:48:02 +0000 (23:48 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:18 +0000 (04:28 -0700)
commitf958ee4917eac68b2c46e1bdbaaf42c6a44e663d
tree8a75394a69f29fd5e5329cd7cf2bd275e1a273a9
parent4f970fee94b5b817ce7f31f82e2082edab03e9a0
MLK-20945-2 dm: device: Check the power up result in probe

If a device has relevant power domain, we will check the power up
result in probing the device. If the power up is failed, the device_probe
will return failure immediately.

The only exception is the new FLAG (DM_FLAG_IGNORE_POWER_ON) is set by driver
to indicate ignore the power up result.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 8524ca764d8fbd05da1593abfed62bb075c50cd4)
drivers/core/device.c
include/dm/device.h