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

Commit f48bc0a3 authored by Shaik Sajida Bhanu's avatar Shaik Sajida Bhanu
Browse files

mmc: core: Enable force hw reset



During error recovery set need hw reset to handle
ICE error where cqe reset is must.

Change-Id: I198cc06c18910c48b85a5298aebb9024b94d2470
Signed-off-by: default avatarShaik Sajida Bhanu <sbhanu@codeaurora.org>
parent 469f70ba
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1488,8 +1488,16 @@ void mmc_blk_cqe_recovery(struct mmc_queue *mq)
	pr_debug("%s: CQE recovery start\n", mmc_hostname(host));

	err = mmc_cqe_recovery(host);
#if defined(CONFIG_SDC_QTI)
	if (err || host->need_hw_reset) {
		mmc_blk_reset(mq->blkdata, host, MMC_BLK_CQE_RECOVERY);
		if (host->need_hw_reset)
			host->need_hw_reset = false;
	}
#else
	if (err)
		mmc_blk_reset(mq->blkdata, host, MMC_BLK_CQE_RECOVERY);
#endif
	mmc_blk_reset_success(mq->blkdata, MMC_BLK_CQE_RECOVERY);

	pr_debug("%s: CQE recovery done\n", mmc_hostname(host));