mmc: cqhci: Add eMMC crypto APIs
Add functions to use eMMC inline encryption hardware capability inline with JEDEC eMMC v5.2 specification and to work with block keyslot manager. Also add crypto variant vops to handle quirks in individual inline encryption hardware. The vops fallback to default implementation which is JEDEC eMMC v5.2 compliant. Fixed the merged conflict in Kconfig file. Fixed compilation issue in cqhci-crypto.c file. (cherry picked from mainline kernel_msm-4.19 commit 32f1d1ca). Conflicts: drivers/mmc/host/Kconfig Test: 1. Device booted upto UI with File Based Encryption enabled. 2. Key insertion using fscryptctl tool. 3. Created new files under /data and checked retention across multiple re-boots. 4. vts_kernel_encryption_test tests. 5. check_encryption test for verifying metadata encryption. Change-Id: I72b85d572d7c76b966e34b80e7e8eca83a2bb35f Signed-off-by:Neeraj Soni <neersoni@codeaurora.org> Signed-off-by:
Vaibhav Agrawal <vagrawa@codeaurora.org>
Loading
Please register or sign in to comment