FROMLIST: mmc: core: Introduce new flag to force hardware reset
Introduce new flag cqe_recovery_reset_always to allow vendors to force hardware reset during cqe recovery. Bug: 231672697 Link: https://lore.kernel.org/lkml/20220603051534.22672-2-quic_sartgarg@quicinc.com/ Signed-off-by: Sarthak Garg <quic_sartgarg@quicinc.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Change-Id: I929bc634a1712c18f26652ae3d7166b7c8b7f7a9
This commit is contained in:
committed by
Carlos Llamas
parent
febc14cca2
commit
c40dacbca2
@@ -1484,7 +1484,7 @@ void mmc_blk_cqe_recovery(struct mmc_queue *mq)
|
|||||||
pr_debug("%s: CQE recovery start\n", mmc_hostname(host));
|
pr_debug("%s: CQE recovery start\n", mmc_hostname(host));
|
||||||
|
|
||||||
err = mmc_cqe_recovery(host);
|
err = mmc_cqe_recovery(host);
|
||||||
if (err)
|
if (err || host->cqe_recovery_reset_always)
|
||||||
mmc_blk_reset(mq->blkdata, host, MMC_BLK_CQE_RECOVERY);
|
mmc_blk_reset(mq->blkdata, host, MMC_BLK_CQE_RECOVERY);
|
||||||
mmc_blk_reset_success(mq->blkdata, MMC_BLK_CQE_RECOVERY);
|
mmc_blk_reset_success(mq->blkdata, MMC_BLK_CQE_RECOVERY);
|
||||||
|
|
||||||
|
|||||||
@@ -521,6 +521,7 @@ struct mmc_host {
|
|||||||
int cqe_qdepth;
|
int cqe_qdepth;
|
||||||
bool cqe_enabled;
|
bool cqe_enabled;
|
||||||
bool cqe_on;
|
bool cqe_on;
|
||||||
|
bool cqe_recovery_reset_always;
|
||||||
|
|
||||||
/* Inline encryption support */
|
/* Inline encryption support */
|
||||||
#ifdef CONFIG_MMC_CRYPTO
|
#ifdef CONFIG_MMC_CRYPTO
|
||||||
|
|||||||
Reference in New Issue
Block a user