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)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:42:03 +0000 (21:42 +0200)
commit025e3d5fe157e8a12ed4ab59d0e147046c87cbd9
tree98a908cd9aa3a0a8c5e16499fa23bb1b1adf30f3
parent9d4579a85c84340044b10ffa6cd576397f59dc93
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>
drivers/mmc/core/block.c