MLK-20945-3 imx_virt_i2c: Add DM_FLAG_IGNORE_POWER_ON flag
authorYe Li <ye.li@nxp.com>
Tue, 19 Feb 2019 07:51:46 +0000 (23:51 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:18 +0000 (04:28 -0700)
When we probe device with virtual i2c driver, it will definitely
fail to power up the PD. Becasue the resource is owned by M4. So
set this driver to ignore the power up result

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 7f753d1b5950015b11be58aa937e5c14b9f26d7a)

drivers/i2c/imx_virt_i2c.c

index bf9486f..678e22f 100644 (file)
@@ -306,5 +306,5 @@ U_BOOT_DRIVER(imx_virt_i2c) = {
        .child_post_bind = imx_virt_i2c_child_post_bind,
        .priv_auto_alloc_size = sizeof(struct imx_virt_i2c_bus),
        .ops = &imx_virt_i2c_ops,
-       .flags  = DM_FLAG_IGNORE_DEFAULT_CLKS,
+       .flags  = DM_FLAG_IGNORE_POWER_ON | DM_FLAG_IGNORE_DEFAULT_CLKS,
 };