OSDN Git Service

mmc: cmdq: add new crypto_cfg_reset host operation
authorSahitya Tummala <stummala@codeaurora.org>
Tue, 1 Sep 2015 11:14:08 +0000 (16:44 +0530)
committerSubhash Jadavani <subhashj@codeaurora.org>
Tue, 31 May 2016 22:27:26 +0000 (15:27 -0700)
commit2f3532d344cd186e7f185e3ff566f54ce6df3aec
treec3b4390dba5e2a9635b627369e10c7414adf424d
parentcedee495d8ea2a70fbbd928f1dbbaf4d2a2db82c
mmc: cmdq: add new crypto_cfg_reset host operation

When encryption/decryption is enabled in CQ mode, the
legacy commands that are sent in HALT state will use
different slot other than slot 0 for crypto configuration
information. The slot that is selected depends on the last
slot that was used when it is in CQ mode.  This is causing
the data of legacy commands to be encrypted/decrypted based
on the wrong slot usage for crypto config details. Hence,
clear the crypto configuration of the slot used in CQ mode
whenever it gets completed.

Change-Id: If573de5025054a10de1dde544aa79022016f65fd
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
drivers/mmc/host/cmdq_hci.c
drivers/mmc/host/cmdq_hci.h
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h