From 662394fb30fdbcc89ec387918714aebee6868a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Wed, 4 Sep 2019 19:01:23 +0200 Subject: brcm2708: update to latest patches from RPi foundation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- ...0-0534-mmc-sdhci-Mask-spurious-interrupts.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 target/linux/brcm2708/patches-4.19/950-0534-mmc-sdhci-Mask-spurious-interrupts.patch (limited to 'target/linux/brcm2708/patches-4.19/950-0534-mmc-sdhci-Mask-spurious-interrupts.patch') diff --git a/target/linux/brcm2708/patches-4.19/950-0534-mmc-sdhci-Mask-spurious-interrupts.patch b/target/linux/brcm2708/patches-4.19/950-0534-mmc-sdhci-Mask-spurious-interrupts.patch new file mode 100644 index 0000000000..8768a82fa5 --- /dev/null +++ b/target/linux/brcm2708/patches-4.19/950-0534-mmc-sdhci-Mask-spurious-interrupts.patch @@ -0,0 +1,29 @@ +From 18eeb92e1b770f5c56411d7a2559b3696450578f Mon Sep 17 00:00:00 2001 +From: Phil Elwell +Date: Fri, 28 Sep 2018 16:24:05 +0100 +Subject: [PATCH 534/782] 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 +--- + 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); + -- cgit v1.2.3