wireguard-tools: add tunlink option for hostroute
[openwrt/staging/mkresin.git] / target / linux / ar71xx / patches-4.14 / 955-qca953x-fix-potential-missing-irq-dispatch.patch
1 --- a/arch/mips/ath79/irq.c
2 +++ b/arch/mips/ath79/irq.c
3 @@ -69,15 +69,21 @@ static void qca953x_ip2_irq_dispatch(str
4 u32 status;
5
6 status = ath79_reset_rr(QCA953X_RESET_REG_PCIE_WMAC_INT_STATUS);
7 + status &= QCA953X_PCIE_WMAC_INT_PCIE_ALL | QCA953X_PCIE_WMAC_INT_WMAC_ALL;
8 +
9 + if (status == 0) {
10 + spurious_interrupt();
11 + return;
12 + }
13
14 if (status & QCA953X_PCIE_WMAC_INT_PCIE_ALL) {
15 ath79_ddr_wb_flush(3);
16 generic_handle_irq(ATH79_IP2_IRQ(0));
17 - } else if (status & QCA953X_PCIE_WMAC_INT_WMAC_ALL) {
18 + }
19 +
20 + if (status & QCA953X_PCIE_WMAC_INT_WMAC_ALL) {
21 ath79_ddr_wb_flush(4);
22 generic_handle_irq(ATH79_IP2_IRQ(1));
23 - } else {
24 - spurious_interrupt();
25 }
26 }
27