From c6def0ad44bd2a2de86d358eb31c5ea5319eb5c8 Mon Sep 17 00:00:00 2001 From: Long Date: Fri, 24 May 2024 19:59:13 +0800 Subject: [PATCH] eMMC: enable inline crypto. [1/1] PD#SWPL-168577 Problem: need enable inlinecrypt Solution: enable inlinecrypt function Verify: S7,S7D Change-Id: Ia7b5781ecfc1d5ec99ca1158e687033dcf9581be Signed-off-by: Long Signed-off-by: Luan Yuan --- drivers/mmc/host/meson-gx-mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 020cec5c7..651400f85 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -4243,10 +4243,10 @@ static int meson_mmc_remove(struct platform_device *pdev) dma_free_coherent(host->dev, SD_EMMC_DESC_BUF_LEN, host->descs, host->descs_dma_addr); -#if IS_ENABLED(CONFIG_AMLOGIC_MMC_CQHCI) - dma_free_coherent(host->dev, SD_EMMC_DESC_BUF_LEN, + if (MMC_HOST_VERSION(host) == MMC_HOST_V8 && aml_card_type_mmc(host)) + dma_free_coherent(host->dev, SD_EMMC_DESC_BUF_LEN, host->sg_descs, host->sg_descs_dma_addr); -#endif + if (!host->dram_access_quirk) dma_free_coherent(host->dev, host->bounce_buf_size, host->bounce_buf, host->bounce_dma_addr);