]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: fsl_esdhc_imx: Fix host_caps issue for non-DM driver
authorYe Li <ye.li@nxp.com>
Tue, 1 Oct 2024 13:07:55 +0000 (21:07 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 4 Oct 2024 12:15:15 +0000 (09:15 -0300)
The plat->cfg is wrongly memset to 0, so the host_caps value configured
in fsl_esdhc_initialize is reset. Remove the unnecessary memset since
plat is allocated via calloc.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/fsl_esdhc_imx.c

index e61c5d544eaaa6bda3a443075f0fd08245904eb2..a3defe952b2eb0130a26af5cda93d2590a8ea794 100644 (file)
@@ -1194,8 +1194,6 @@ static int fsl_esdhc_init(struct fsl_esdhc_priv *priv,
 
        esdhc_write32(&regs->irqstaten, SDHCI_IRQ_EN_BITS);
        cfg = &plat->cfg;
-       if (!CONFIG_IS_ENABLED(DM_MMC))
-               memset(cfg, '\0', sizeof(*cfg));
 
        caps = esdhc_read32(&regs->hostcapblt);