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

Commit 4509e16f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: core: Avoid frequent enable/disable of Auto BKOPS"

parents 39d46f4b f649debf
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2514,12 +2514,6 @@ static int _mmc_suspend(struct mmc_host *host, bool is_suspend)
			goto out;
	}

	if (mmc_card_doing_auto_bkops(host->card)) {
		err = mmc_set_auto_bkops(host->card, false);
		if (err)
			goto out;
	}

	err = mmc_flush_cache(host->card);
	if (err)
		goto out;
@@ -2599,9 +2593,6 @@ static int mmc_partial_init(struct mmc_host *host)
	pr_debug("%s: %s: reading and comparing ext_csd successful\n",
		mmc_hostname(host), __func__);

	if (mmc_card_support_auto_bkops(host->card))
		(void)mmc_set_auto_bkops(host->card, true);

	if (card->ext_csd.cmdq_support && (card->host->caps2 &
					   MMC_CAP2_CMD_QUEUE)) {
		err = mmc_select_cmdq(card);