From patchwork Fri Apr 10 02:19:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Olivari X-Patchwork-Id: 459881 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B8EEE140272 for ; Fri, 10 Apr 2015 12:21:28 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id A5E0428BFAA; Fri, 10 Apr 2015 04:19:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 850E528BF84 for ; Fri, 10 Apr 2015 04:19:07 +0200 (CEST) X-policyd-weight: using cached result; rate:hard: -7.6 Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 10 Apr 2015 04:19:07 +0200 (CEST) Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 6FA9A1405C9; Fri, 10 Apr 2015 02:19:53 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id 610E51405CD; Fri, 10 Apr 2015 02:19:53 +0000 (UTC) Received: from mathieu-linux.qualcomm.com (qf-scl1nat.qualcomm.com [207.114.132.30]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mathieu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A72831405C9; Fri, 10 Apr 2015 02:19:52 +0000 (UTC) From: Mathieu Olivari To: openwrt-devel@lists.openwrt.org, blogic@openwrt.org Date: Thu, 9 Apr 2015 19:19:06 -0700 Message-Id: <1428632346-12793-3-git-send-email-mathieu@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428632346-12793-1-git-send-email-mathieu@codeaurora.org> References: <1428632346-12793-1-git-send-email-mathieu@codeaurora.org> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [OpenWrt-Devel] [PATCH] qca-nss-gmac: remove IRQ flag IRQF_DISABLED X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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 --- .../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);