Skip to content

Commit 52957cd

Browse files
Neeraj SoniUlf Hansson
authored andcommitted
mmc: sdhci-msm: Fix the wrapped key handling
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: fd78e2b ("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>
1 parent 6546a49 commit 52957cd

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/mmc/host/sdhci-msm.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,11 +1926,6 @@ static int sdhci_msm_ice_init(struct sdhci_msm_host *msm_host,
19261926
if (IS_ERR_OR_NULL(ice))
19271927
return PTR_ERR_OR_ZERO(ice);
19281928

1929-
if (qcom_ice_get_supported_key_type(ice) != BLK_CRYPTO_KEY_TYPE_RAW) {
1930-
dev_warn(dev, "Wrapped keys not supported. Disabling inline encryption support.\n");
1931-
return 0;
1932-
}
1933-
19341929
msm_host->ice = ice;
19351930

19361931
/* Initialize the blk_crypto_profile */

0 commit comments

Comments
 (0)