ANDROID: mmc: cqhci: set blk_keyslot_manager::features

This is needed due to "ANDROID: block: add hardware-wrapped key
support", which isn't upstream yet.

Bug: 160883801
Change-Id: I053a1de8d8c600f8eaba60cd338e07b778d017b3
Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
Eric Biggers
2020-12-11 10:18:05 -08:00
committed by Greg Kroah-Hartman
parent b489f0324e
commit 14d98d667c

View File

@@ -209,6 +209,8 @@ int cqhci_crypto_init(struct cqhci_host *cq_host)
/* Unfortunately, CQHCI crypto only supports 32 DUN bits. */
ksm->max_dun_bytes_supported = 4;
ksm->features = BLK_CRYPTO_FEATURE_STANDARD_KEYS;
/*
* Cache all the crypto capabilities and advertise the supported crypto
* modes and data unit sizes to the block layer.