mmc: block: Disable Command Queue while RPMB is used
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 13 Mar 2017 12:36:39 +0000 (14:36 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:15 +0000 (15:38 -0500)
commitafc1d55f4a2b1d2b339057212b78a543e81a9375
treeb4177078a1fb30f4d34564d6870f7665207a1435
parent6d117f9ddc8e60d4e7b83512fa50bd392c5d1fcc
mmc: block: Disable Command Queue while RPMB is used

RPMB does not allow Command Queue commands. Disable and re-enable the
Command Queue when switching.

Note that the driver only switches partitions when the queue is empty.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Harjani Ritesh <riteshh@codeaurora.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit 025e3d5fe157e8a12ed4ab59d0e147046c87cbd9)
drivers/mmc/core/block.c