mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-24 19:12:14 +00:00
mmc: sdhci: Mask "spurious" interrupts
Add a filter for "spurious" Transfer Complete interrupts, attempting to make it as specific as possible: * INT_DATA_END (transfer complete) is set * There is a stop command in progress * There is no data transfer in progress Signed-off-by: Phil Elwell <phil@raspberrypi.org>
This commit is contained in:
@@ -3086,6 +3086,10 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id)
|
||||
result = IRQ_WAKE_THREAD;
|
||||
}
|
||||
|
||||
if ((intmask & SDHCI_INT_DATA_END) && !host->data &&
|
||||
host->cmd && (host->cmd == host->cmd->mrq->stop))
|
||||
intmask &= ~SDHCI_INT_DATA_END;
|
||||
|
||||
if (intmask & SDHCI_INT_CMD_MASK)
|
||||
sdhci_cmd_irq(host, intmask & SDHCI_INT_CMD_MASK, &intmask);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user