Skip to content

Commit d8ba326

Browse files
Phil Elwellpopcornmix
authored andcommitted
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>
1 parent e548530 commit d8ba326

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/mmc/host/sdhci.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3081,6 +3081,10 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id)
30813081
result = IRQ_WAKE_THREAD;
30823082
}
30833083

3084+
if ((intmask & SDHCI_INT_DATA_END) && !host->data &&
3085+
host->cmd && (host->cmd == host->cmd->mrq->stop))
3086+
intmask &= ~SDHCI_INT_DATA_END;
3087+
30843088
if (intmask & SDHCI_INT_CMD_MASK)
30853089
sdhci_cmd_irq(host, intmask & SDHCI_INT_CMD_MASK, &intmask);
30863090

0 commit comments

Comments
 (0)