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

Commit 94c6e637 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 9d860f25 e1b3c352
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2378,12 +2378,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;
@@ -2463,9 +2457,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);