From patchwork Tue May 12 04:22:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 6385451 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6A49BBEEE1 for ; Tue, 12 May 2015 04:24:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 81791203C4 for ; Tue, 12 May 2015 04:24:38 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id CE8A420397 for ; Tue, 12 May 2015 04:24:35 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3818F265497; Tue, 12 May 2015 06:24:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 36501265353; Tue, 12 May 2015 06:24:27 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1CDC4265341; Tue, 12 May 2015 06:24:25 +0200 (CEST) Received: from mail-yk0-f179.google.com (mail-yk0-f179.google.com [209.85.160.179]) by alsa0.perex.cz (Postfix) with ESMTP id E3C672651B7 for ; Tue, 12 May 2015 06:24:17 +0200 (CEST) Received: by ykeo186 with SMTP id o186so44240833yke.0 for ; Mon, 11 May 2015 21:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=dop/vargZ+qVsFxPGUU0EKeo3XoJhcIGcmlUB37Md00=; b=p7+UAXS7D8bk5T3qeJmPlhi4X6fMHuOIoWByE9bnAJOSj3jAmNM2vGvgeeBOnB5r3I S4O/4JKtC8r/3JtHFkCE47HwnxbrSScrsLZUdFEEotbS4yDW4X4o1GBzZmLqzU+3OACh DeYbuj+retfrCeC0ZaPvGQ0iPZAiQDGEOLavhmc047Zme+qMGIt0/J8LR90nKBDDe7+5 ThmDkGRWp6y8jH5DWjmtqgGJNZRZ6QcplB+gkgiQqvyJucGdv/CNqRMSbRxo9SsUNWb2 yEoNd4Vw2V5kC0AGBRN5gefsey75IFJ3mFvXbdRfZvL096x1hmqJ7Zt69412IYTzbZLL BG7g== X-Received: by 10.236.228.201 with SMTP id f69mr13172912yhq.13.1431404656707; Mon, 11 May 2015 21:24:16 -0700 (PDT) Received: from localhost.localdomain ([177.194.98.179]) by mx.google.com with ESMTPSA id k8sm14073447yha.18.2015.05.11.21.24.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 May 2015 21:24:15 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Date: Tue, 12 May 2015 01:22:56 -0300 Message-Id: <1431404580-17991-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: Fabio Estevam , Julia.Lawall@lip6.fr, alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH 1/5] ASoC: wm8996: Pass the IRQF_ONESHOT flag X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail. So pass the IRQF_ONESHOT flag in this case. The semantic patch that makes this change is available in scripts/coccinelle/misc/irqf_oneshot.cocci. Signed-off-by: Fabio Estevam --- sound/soc/codecs/wm8996.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index 3dce507..232f234 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c @@ -2644,10 +2644,12 @@ static int wm8996_probe(struct snd_soc_codec *codec) if (irq_flags & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) ret = request_threaded_irq(i2c->irq, NULL, wm8996_edge_irq, - irq_flags, "wm8996", codec); + irq_flags | IRQF_ONESHOT, + "wm8996", codec); else ret = request_threaded_irq(i2c->irq, NULL, wm8996_irq, - irq_flags, "wm8996", codec); + irq_flags | IRQF_ONESHOT, + "wm8996", codec); if (ret == 0) { /* Unmask the interrupt */