Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ad791dcf authored by Veerabhadrarao Badiganti's avatar Veerabhadrarao Badiganti
Browse files

mmc: card: Add explicit checks for secure-discard requests



Discard request is no more overloaded with secure discard operation on
latest kernels. This change was introduced with commit "288dab8a".
Earlier, it was issued as discard request.

We have a check for not to fetch a new DCMD request (flush/discard) if
mmc driver is already processing a DCDM request. But since here
secure-erase request which also a DCMD request getting issued as a
separate request (i.e., not as discard request), its getting issued and
mmc driver is trying to process another DCMD while a DCMD is already in
progress which can mess-up the command queue h/w & s/w state machines.

Adding explicit checks for secure-discard request besides discard
request in the cmdq request issueing path. This would ensure that
secure discard request won't get fetched while another DCDM is active.

Change-Id: Ie0e8fdd44fc6fb2e1bb3b7c595ef32b66128ac5f
Signed-off-by: default avatarVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
parent af4ea937
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment