forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: bump to 4.9.194, 4.14.146, 4.17.75
- Loading branch information
1 parent
5161e81
commit eb05272
Showing
1,323 changed files
with
68,958 additions
and
65,271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
.../linux/ar71xx/patches-4.14/343-MIPS-ath79-Fix-potentially-missed-IRQ-handling-durin.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
From 3fe7841bf5a582dc7fd198e5bf70162ea418a22a Mon Sep 17 00:00:00 2001 | ||
From: Koen Vandeputte <[email protected]> | ||
Date: Wed, 11 Sep 2019 11:02:19 +0200 | ||
Subject: [PATCH] MIPS: ath79: Fix potentially missed IRQ handling during | ||
dispatch | ||
|
||
If both interrupts are set in the current implementation | ||
only the 1st will be handled and the 2nd will be skipped | ||
due to the "if else" condition. | ||
|
||
Fix this by using the same approach as done for QCA955x | ||
just below it. | ||
|
||
Fixes: fce5cc6e0ddc ("MIPS: ath79: add IRQ handling code for AR934X") | ||
Signed-off-by: Koen Vandeputte <[email protected]> | ||
CC: Felix Fietkau <[email protected]> | ||
CC: Gabor Juhos <[email protected]> | ||
CC: James Hogan <[email protected]> | ||
CC: Paul Burton <[email protected]> | ||
CC: Ralf Baechle <[email protected]> | ||
CC: [email protected] # v3.2+ | ||
--- | ||
arch/mips/ath79/irq.c | 12 +++++++++--- | ||
1 file changed, 9 insertions(+), 3 deletions(-) | ||
|
||
--- a/arch/mips/ath79/irq.c | ||
+++ b/arch/mips/ath79/irq.c | ||
@@ -32,15 +32,21 @@ static void ar934x_ip2_irq_dispatch(stru | ||
u32 status; | ||
|
||
status = ath79_reset_rr(AR934X_RESET_REG_PCIE_WMAC_INT_STATUS); | ||
+ status &= AR934X_PCIE_WMAC_INT_PCIE_ALL | AR934X_PCIE_WMAC_INT_WMAC_ALL; | ||
+ | ||
+ if (status == 0) { | ||
+ spurious_interrupt(); | ||
+ return; | ||
+ } | ||
|
||
if (status & AR934X_PCIE_WMAC_INT_PCIE_ALL) { | ||
ath79_ddr_wb_flush(3); | ||
generic_handle_irq(ATH79_IP2_IRQ(0)); | ||
- } else if (status & AR934X_PCIE_WMAC_INT_WMAC_ALL) { | ||
+ } | ||
+ | ||
+ if (status & AR934X_PCIE_WMAC_INT_WMAC_ALL) { | ||
ath79_ddr_wb_flush(4); | ||
generic_handle_irq(ATH79_IP2_IRQ(1)); | ||
- } else { | ||
- spurious_interrupt(); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
target/linux/ar71xx/patches-4.14/952-qca955x-enable-ddr-wb-flush.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- a/arch/mips/ath79/common.c | ||
+++ b/arch/mips/ath79/common.c | ||
@@ -49,6 +49,8 @@ void ath79_ddr_ctrl_init(void) | ||
if (soc_is_ar913x() || soc_is_ar724x() || soc_is_ar933x()) { | ||
ath79_ddr_wb_flush_base = ath79_ddr_base + 0x7c; | ||
ath79_ddr_pci_win_base = 0; | ||
+ } else if (soc_is_qca953x() || soc_is_qca955x()) { | ||
+ ath79_ddr_wb_flush_base = ath79_ddr_base + 0x9c; | ||
} else { | ||
ath79_ddr_wb_flush_base = ath79_ddr_base + 0x9c; | ||
ath79_ddr_pci_win_base = ath79_ddr_base + 0x7c; | ||
--- a/arch/mips/ath79/irq.c | ||
+++ b/arch/mips/ath79/irq.c | ||
@@ -105,12 +105,12 @@ static void qca955x_ip2_irq_dispatch(str | ||
} | ||
|
||
if (status & QCA955X_EXT_INT_PCIE_RC1_ALL) { | ||
- /* TODO: flush DDR? */ | ||
+ ath79_ddr_wb_flush(3); | ||
generic_handle_irq(ATH79_IP2_IRQ(0)); | ||
} | ||
|
||
if (status & QCA955X_EXT_INT_WMAC_ALL) { | ||
- /* TODO: flush DDR? */ | ||
+ ath79_ddr_wb_flush(4); | ||
generic_handle_irq(ATH79_IP2_IRQ(1)); | ||
} | ||
} | ||
@@ -130,17 +130,17 @@ static void qca955x_ip3_irq_dispatch(str | ||
} | ||
|
||
if (status & QCA955X_EXT_INT_USB1) { | ||
- /* TODO: flush DDR? */ | ||
+ ath79_ddr_wb_flush(2); | ||
generic_handle_irq(ATH79_IP3_IRQ(0)); | ||
} | ||
|
||
if (status & QCA955X_EXT_INT_USB2) { | ||
- /* TODO: flush DDR? */ | ||
+ ath79_ddr_wb_flush(2); | ||
generic_handle_irq(ATH79_IP3_IRQ(1)); | ||
} | ||
|
||
if (status & QCA955X_EXT_INT_PCIE_RC2_ALL) { | ||
- /* TODO: flush DDR? */ | ||
+ ath79_ddr_wb_flush(3); | ||
generic_handle_irq(ATH79_IP3_IRQ(2)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.