From patchwork Tue May 12 04:22:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 6385461 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E5B289F32B for ; Tue, 12 May 2015 04:25:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1FF9E203DA for ; Tue, 12 May 2015 04:25:04 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id EBB1A203C4 for ; Tue, 12 May 2015 04:25:02 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B38342654ED; Tue, 12 May 2015 06:25:01 +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 3F611265456; Tue, 12 May 2015 06:24:30 +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 3FF93265367; Tue, 12 May 2015 06:24:27 +0200 (CEST) Received: from mail-yk0-f170.google.com (mail-yk0-f170.google.com [209.85.160.170]) by alsa0.perex.cz (Postfix) with ESMTP id 12C51265334 for ; Tue, 12 May 2015 06:24:20 +0200 (CEST) Received: by ykep21 with SMTP id p21so44194822yke.3 for ; Mon, 11 May 2015 21:24:19 -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:in-reply-to:references; bh=musDKjONXu7knhwtjKQsD0Dmt6WHJ6vlEYwz/hmDkTs=; b=JacWQ6N6g2WKeLNQi9yJLfjT3Jmy4aKH9IWW3xeRGo9aZyCOJF4PGUIpH5s7t7xOAf MsFXEvd1uzdmdQltggf/Wb7kpFszgSkK7D27vL8l78EBnN++njXhbVZ011qdhFgwP73K 09dJ0AGcXEN0hk+QK3Z5TsZx9mCNIuddwJLC0tC4sZ0PMCBmZ+pr12agg2LC11CH2MaT LF28jGG8Qs0MsWIDGhXw/bAwCJ+JWmDFsct/NYxXbM/KYvlOVmOUSi7EZa6OrGegvk1J VDn/lc57RQH+uwwS0PgX89ZwDrb+/j6xPQyQGv9cT7xEauk3Q+teAU/0rIDVxjcq+k1x v+WA== X-Received: by 10.236.8.101 with SMTP id 65mr12994435yhq.94.1431404659400; Mon, 11 May 2015 21:24:19 -0700 (PDT) Received: from localhost.localdomain ([177.194.98.179]) by mx.google.com with ESMTPSA id k8sm14073447yha.18.2015.05.11.21.24.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 May 2015 21:24:18 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Date: Tue, 12 May 2015 01:22:57 -0300 Message-Id: <1431404580-17991-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431404580-17991-1-git-send-email-festevam@gmail.com> References: <1431404580-17991-1-git-send-email-festevam@gmail.com> Cc: Fabio Estevam , Julia.Lawall@lip6.fr, alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH 2/5] ASoC: wm5100: 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/wm5100.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index 9674037..5de28bfd 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c @@ -2570,11 +2570,13 @@ static int wm5100_i2c_probe(struct i2c_client *i2c, if (irq_flags & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) ret = request_threaded_irq(i2c->irq, NULL, - wm5100_edge_irq, irq_flags, + wm5100_edge_irq, + irq_flags | IRQF_ONESHOT, "wm5100", wm5100); else ret = request_threaded_irq(i2c->irq, NULL, wm5100_irq, - irq_flags, "wm5100", + irq_flags | IRQF_ONESHOT, + "wm5100", wm5100); if (ret != 0) {