Commit e5f7a3c6 authored by Shaik Sajida Bhanu's avatar Shaik Sajida Bhanu Committed by Ulf Hansson
Browse files

mmc: cqhci: Capture eMMC and SD card errors

parent fadf344e
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -822,8 +822,15 @@ irqreturn_t cqhci_irq(struct mmc_host *mmc, u32 intmask, int cmd_error,
	pr_debug("%s: cqhci: IRQ status: 0x%08x\n", mmc_hostname(mmc), status);

	if ((status & (CQHCI_IS_RED | CQHCI_IS_GCE | CQHCI_IS_ICCE)) ||
	    cmd_error || data_error)
	    cmd_error || data_error) {
		if (status & CQHCI_IS_RED)
			mmc_debugfs_err_stats_inc(mmc, MMC_ERR_CMDQ_RED);
		if (status & CQHCI_IS_GCE)
			mmc_debugfs_err_stats_inc(mmc, MMC_ERR_CMDQ_GCE);
		if (status & CQHCI_IS_ICCE)
			mmc_debugfs_err_stats_inc(mmc, MMC_ERR_CMDQ_ICCE);
		cqhci_error_irq(mmc, status, cmd_error, data_error);
	}

	if (status & CQHCI_IS_TCC) {
		/* read TCN and complete the request */