From 06ddb05074e204e336d39d0ae18975e9ce0c0d65 Mon Sep 17 00:00:00 2001 From: Maya Erez Date: Thu, 17 Sep 2015 16:07:39 +0300 Subject: [PATCH] mmc: core: check if manual BKOPS is ongoing before scaling Clock scaling commands are not allowed to be sent when the device performs manual BKOPS. In case the device is busy with manual BKOPS, skip the clock scaling and allow the device to continue the BKOPS. Clock scaling will be invoked again later by dev freq. Change-Id: I78b505326d245b1ddcd9d6f1cdd4294850889d45 Signed-off-by: Maya Erez --- drivers/mmc/core/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 8e24ddfb51db..3e279f4c6aa0 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -336,7 +336,8 @@ static bool mmc_is_valid_state_for_clk_scaling(struct mmc_host *host) * this mode. */ if (!card || (mmc_card_mmc(card) && - card->part_curr == EXT_CSD_PART_CONFIG_ACC_RPMB)) + (card->part_curr == EXT_CSD_PART_CONFIG_ACC_RPMB || + mmc_card_doing_bkops(card)))) return false; if (mmc_send_status(card, &status)) {