Commit 543d8315 authored by Andy-ld Lu's avatar Andy-ld Lu Committed by Greg Kroah-Hartman
Browse files

mmc: mtk-sd: Fix MMC_CAP2_CRYPTO flag setting



[ Upstream commit 2508925f ]

Currently, the MMC_CAP2_CRYPTO flag is set by default for eMMC hosts.
However, this flag should not be set for hosts that do not support inline
encryption.

The 'crypto' clock, as described in the documentation, is used for data
encryption and decryption. Therefore, only hosts that are configured with
this 'crypto' clock should have the MMC_CAP2_CRYPTO flag set.

Fixes: 7b438d03 ("mmc: mtk-sd: add Inline Crypto Engine clock control")
Fixes: ed299eda ("mmc: mtk-sd: fix devm_clk_get_optional usage")
Signed-off-by: default avatarAndy-ld Lu <andy-ld.lu@mediatek.com>
Cc: stable@vger.kernel.org
Message-ID: <20241111085039.26527-1-andy-ld.lu@mediatek.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7e0ccc28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment