From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luciano Coelho Subject: [PATCH v2 5/9] wlcore: always use one-shot IRQ Date: Tue, 2 Jul 2013 17:55:44 +0300 Message-ID: <1372776948-24840-6-git-send-email-coelho@ti.com> References: <1372776948-24840-1-git-send-email-coelho@ti.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1372776948-24840-1-git-send-email-coelho@ti.com> Sender: linux-kernel-owner@vger.kernel.org To: linux-wireless@vger.kernel.org, tony@atomide.com, nsekhar@ti.com Cc: mturquette@linaro.org, mark.rutland@arm.com, balbi@ti.com, grant.likely@linaro.org, rob.herring@calxeda.com, devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coelho@ti.com List-Id: devicetree@vger.kernel.org Since we are now using threaded IRQs without the primary handler, we need to set IRQF_ONESHOT, otherwise our request will fail. Signed-off-by: Luciano Coelho --- drivers/net/wireless/ti/wlcore/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index d306cd5..bc1cff3 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -5927,7 +5927,8 @@ static void wlcore_nvs_cb(const struct firmware *fw, void *context) wl->irq = platform_get_irq(pdev, 0); wl->if_ops = pdev_data->if_ops; - wl->irq_flags = pdata->irq_flags; + /* Since we don't use the primary handler, we must set ONESHOT */ + wl->irq_flags = pdata->irq_flags | IRQF_ONESHOT; ret = request_threaded_irq(wl->irq, NULL, wlcore_irq, wl->irq_flags, pdev->name, wl); -- 1.7.10.4