mmc: host: reprogram the key to cover the invalid config case
This is a workaround to cover a corner case where the host controller crashes with invalid config error as the crypto config in crypto engine are lost between key programming call and descriptor processing. Ported and fixed the merged conflicts in cqhci-crypto-qti.c and cqhci-crypto-qti.h file (cherry picked from mainline kernel_msm-4.14 commit: 3315421) Conflicts: drivers/mmc/host/cqhci-crypto-qti.c drivers/mmc/host/cqhci-crypto-qti.h Test: 1) Flashed Q meta, create multiple files under /data. 2) Build R (include changes topic: 660_OTA_FIXES) and flash APPS images of R except userdata and boot the device. 3) Device booted upto UI. 4) Files created with Q build retained. 5) Created new files under /data and checked retention across multiple re-boots. Change-Id: Idc8ed67281e8f2955b7d759e6821a06ced36aa0b Signed-off-by:Neeraj Soni <neersoni@codeaurora.org> Signed-off-by:
Jiten Patel <jitepate@codeaurora.org>
Loading
Please register or sign in to comment