]> git.baikalelectronics.ru Git - uboot.git/commit
dm: power-domain: query power domain after get device
authorPeng Fan <peng.fan@nxp.com>
Fri, 27 Jul 2018 02:20:39 +0000 (10:20 +0800)
committerAnatolij Gustschin <agust@denx.de>
Mon, 6 Aug 2018 09:52:19 +0000 (11:52 +0200)
commit5b8efcaedf3493cd2b4fea2f052468e5baf00c59
treeafbe276bc8272c2ee8d9160a378bfcc35bf933ca
parent7321a23e88a609d7eec1c7bca2ad82b8e197a30b
dm: power-domain: query power domain after get device

This is to test power_domain_on in device_probe.
If the device has a power-domain property, enable it
when probe the device. So add the test to check
whether it is powered on or not.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/power-domain.c