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

Commit 476d79f1 authored by Doug Anderson's avatar Doug Anderson Committed by Chris Ball
Browse files

mmc: dw_mmc: Handle DW_MCI_QUIRK_IDMAC_DTO properly



In (1fb5f68a mmc: dw_mmc: Don't loop when handling an interrupt), the
code for handling DW_MCI_QUIRK_IDMAC_DTO became dead code.  Move it to
where it ought to live.

Found by code inspection and compile-tested only--I don't know of any
boards that need DW_MCI_QUIRK_IDMAC_DTO.

Signed-off-by: default avatarDoug Anderson <dianders@chromium.org>
Acked-by: default avatarSeungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent c8760069
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -1601,8 +1601,6 @@ static irqreturn_t dw_mci_interrupt(int irq, void *dev_id)

	pending = mci_readl(host, MINTSTS); /* read-only mask reg */

	if (pending) {

	/*
	 * DTO fix - version 2.10a and below, and only if internal DMA
	 * is configured.
@@ -1613,6 +1611,7 @@ static irqreturn_t dw_mci_interrupt(int irq, void *dev_id)
			pending |= SDMMC_INT_DATA_OVER;
	}

	if (pending) {
		if (pending & DW_MCI_CMD_ERROR_FLAGS) {
			mci_writel(host, RINTSTS, DW_MCI_CMD_ERROR_FLAGS);
			host->cmd_status = pending;