[OpenWrt-Devel] [PATCH] qca-nss-gmac: remove IRQ flag IRQF_DISABLED
Mathieu Olivari
mathieu at codeaurora.org
Thu Apr 9 22:19:06 EDT 2015
IRQF_DISABLED has been disabled in 4.0 as it has been a no-op since
2.6.36. We'll reflect this change in the GMAC so it can build on newer
kernels if necessary.
Source: https://lkml.org/lkml/2015/3/5/323
Signed-off-by: Mathieu Olivari <mathieu at codeaurora.org>
---
.../001-nss-gmac-remove-IRQ-flag-IRQF_DISABLED.patch | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 package/kernel/qca-nss-gmac/patches/001-nss-gmac-remove-IRQ-flag-IRQF_DISABLED.patch
diff --git a/package/kernel/qca-nss-gmac/patches/001-nss-gmac-remove-IRQ-flag-IRQF_DISABLED.patch b/package/kernel/qca-nss-gmac/patches/001-nss-gmac-remove-IRQ-flag-IRQF_DISABLED.patch
new file mode 100644
index 0000000..7bc5bfe
--- /dev/null
+++ b/package/kernel/qca-nss-gmac/patches/001-nss-gmac-remove-IRQ-flag-IRQF_DISABLED.patch
@@ -0,0 +1,15 @@
+diff --git a/ipq806x/nss_gmac_tx_rx_offload.c b/ipq806x/nss_gmac_tx_rx_offload.c
+index bc684a5..383403b 100644
+--- a/ipq806x/nss_gmac_tx_rx_offload.c
++++ b/ipq806x/nss_gmac_tx_rx_offload.c
+@@ -896,8 +896,8 @@ int nss_gmac_open(struct net_device *netdev)
+ nss_gmac_rx_refill(gmacdev);
+
+ /* Register IRQ */
+- err = request_irq(netdev->irq, nss_gmac_handle_irq,
+- IRQF_DISABLED, "nss-gmac", gmacdev);
++ err = request_irq(netdev->irq, nss_gmac_handle_irq, 0,
++ "nss-gmac", gmacdev);
+ if (err) {
+ netdev_dbg(netdev, "Mac %d IRQ %d request failed\n",
+ gmacdev->macid, netdev->irq);
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list