kernel: bump 4.19 to 4.19.93
[oweals/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0465-mmc-sdhci-Mask-spurious-interrupts.patch
1 From be309b7db77215610d5ac15bf0aacd47ea5b3433 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Fri, 28 Sep 2018 16:24:05 +0100
4 Subject: [PATCH] mmc: sdhci: Mask "spurious" interrupts
5
6 Add a filter for "spurious" Transfer Complete interrupts, attempting
7 to make it as specific as possible:
8 * INT_DATA_END (transfer complete) is set
9 * There is a stop command in progress
10 * There is no data transfer in progress
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
13 ---
14  drivers/mmc/host/sdhci.c | 4 ++++
15  1 file changed, 4 insertions(+)
16
17 --- a/drivers/mmc/host/sdhci.c
18 +++ b/drivers/mmc/host/sdhci.c
19 @@ -2935,6 +2935,10 @@ static irqreturn_t sdhci_irq(int irq, vo
20                         result = IRQ_WAKE_THREAD;
21                 }
22  
23 +               if ((intmask & SDHCI_INT_DATA_END) && !host->data &&
24 +                   host->cmd && (host->cmd == host->cmd->mrq->stop))
25 +                       intmask &= ~SDHCI_INT_DATA_END;
26 +
27                 if (intmask & SDHCI_INT_CMD_MASK)
28                         sdhci_cmd_irq(host, intmask & SDHCI_INT_CMD_MASK, &intmask);
29