MLK-20107 fspi: Keep the module enabled after probe
authorYe Li <ye.li@nxp.com>
Thu, 25 Oct 2018 08:37:52 +0000 (01:37 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 09:39:09 +0000 (02:39 -0700)
In flexspi driver, each sf command will disable the module in release bus
function. So reading from flexspi memory-map address using "md" command
can't work. When iMX8MM kicks M4 image to run flexspi NOR XIP,
this causes problem.

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

drivers/spi/fsl_fspi.c

index e524839..260f73c 100644 (file)
@@ -1375,21 +1375,11 @@ static int fsl_fspi_claim_bus(struct udevice *dev)
        priv->cur_amba_base =
                priv->amba_base[0] + FSL_FSPI_FLASH_SIZE * slave_plat->cs;
 
-       fspi_module_disable(priv, 0);
-
        return 0;
 }
 
 static int fsl_fspi_release_bus(struct udevice *dev)
 {
-       struct fsl_fspi_priv *priv;
-       struct udevice *bus;
-
-       bus = dev->parent;
-       priv = dev_get_priv(bus);
-
-       fspi_module_disable(priv, 1);
-
        return 0;
 }