MLK-20945-3 imx_virt_i2c: Add DM_FLAG_DEFAULT_PD_CTRL_OFF flag
authorYe Li <ye.li@nxp.com>
Tue, 19 Feb 2019 07:51:46 +0000 (23:51 -0800)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:25 +0000 (00:56 -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)
(cherry picked from commit 6ac1ee462c7000e7017c55f76550551a6267dc58)
(cherry picked from commit 08e051be36043273c4d5fc496e657aaeab5b16e7)

drivers/i2c/imx_virt_i2c.c

index 5789a25..5e0fc78 100644 (file)
@@ -305,5 +305,5 @@ U_BOOT_DRIVER(imx_virt_i2c) = {
        .child_post_bind = imx_virt_i2c_child_post_bind,
        .priv_auto = sizeof(struct imx_virt_i2c_bus),
        .ops = &imx_virt_i2c_ops,
-       .flags  = DM_FLAG_IGNORE_DEFAULT_CLKS,
+       .flags  = DM_FLAG_DEFAULT_PD_CTRL_OFF | DM_FLAG_IGNORE_DEFAULT_CLKS,
 };