mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
4295485719
Boot tested on Raspberry Pi B+ (BCM2708) and Raspberry Pi 2 (BCM2709) Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
30 lines
982 B
Diff
30 lines
982 B
Diff
From 80e4525509000d3f7faebbc9ea403c9776aab2c5 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.org>
|
|
Date: Fri, 28 Sep 2018 16:24:05 +0100
|
|
Subject: [PATCH 541/703] 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>
|
|
---
|
|
drivers/mmc/host/sdhci.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/drivers/mmc/host/sdhci.c
|
|
+++ b/drivers/mmc/host/sdhci.c
|
|
@@ -2930,6 +2930,10 @@ static irqreturn_t sdhci_irq(int irq, vo
|
|
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);
|
|
|