]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mmc: sdhci-msm: Fix the wrapped key handling
authorNeeraj Soni <neeraj.soni@oss.qualcomm.com>
Fri, 10 Apr 2026 06:58:33 +0000 (12:28 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 10 Apr 2026 08:29:58 +0000 (10:29 +0200)
Inline Crypto Engine (ICE) supports wrapped key generation. While
registering crypto profile the supported key types are queried from ICE
driver. So the explicit check for RAW key is not needed.

Fixes: fd78e2b582a0 ("mmc: sdhci-msm: Add support for wrapped keys")
Signed-off-by: Neeraj Soni <neeraj.soni@oss.qualcomm.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c

index b4131b12df56be834971a3e1e39d9f086c8a52da..633462c0be5f43c06c497520faf9f6fa03fa652a 100644 (file)
@@ -1926,11 +1926,6 @@ static int sdhci_msm_ice_init(struct sdhci_msm_host *msm_host,
        if (IS_ERR_OR_NULL(ice))
                return PTR_ERR_OR_ZERO(ice);
 
-       if (qcom_ice_get_supported_key_type(ice) != BLK_CRYPTO_KEY_TYPE_RAW) {
-               dev_warn(dev, "Wrapped keys not supported. Disabling inline encryption support.\n");
-               return 0;
-       }
-
        msm_host->ice = ice;
 
        /* Initialize the blk_crypto_profile */