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 <neersoni@codeaurora.org>
tirimbino
Neeraj Soni 4 years ago committed by Gerrit - the friendly Code Review server
parent 8700f864c2
commit b3dc768908
  1. 2
      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

Loading…
Cancel
Save