From 53fc3c3bcabd30a6d4736b85945601aa9ca3840c Mon Sep 17 00:00:00 2001 From: Neeraj Soni Date: Tue, 11 Aug 2020 22:55:15 +0530 Subject: [PATCH] mmc: host: Set the supported dun size for crypto Driver need to register the supported data unit number (dun) size with keyslot manager so that encryption request with unsupported dun size can fallback to fs or block crypto. Change-Id: If0b724a80049fb3544a6338345a55bf7d1084127 Signed-off-by: Neeraj Soni --- drivers/mmc/host/cmdq_hci-crypto-qti.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/cmdq_hci-crypto-qti.c b/drivers/mmc/host/cmdq_hci-crypto-qti.c index 9921a14c9cef..84718e8da7f3 100644 --- a/drivers/mmc/host/cmdq_hci-crypto-qti.c +++ b/drivers/mmc/host/cmdq_hci-crypto-qti.c @@ -231,6 +231,8 @@ int cmdq_host_init_crypto_qti_spec(struct cmdq_host *host, err = -ENOMEM; goto out; } + keyslot_manager_set_max_dun_bytes(host->ksm, sizeof(u32)); + /* * In case host controller supports cryptographic operations * then, it uses 128bit task descriptor. Upper 64 bits of task