From patchwork Tue May 12 04:22:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 6385481 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 26990BEEE1 for ; Tue, 12 May 2015 04:26:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C9B0203DA for ; Tue, 12 May 2015 04:26:01 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 24AD4203B5 for ; Tue, 12 May 2015 04:26:00 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2F7E2265684; Tue, 12 May 2015 06:25:58 +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 8FAFD265486; Tue, 12 May 2015 06:24:33 +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 7133226546D; Tue, 12 May 2015 06:24:31 +0200 (CEST) Received: from mail-yk0-f171.google.com (mail-yk0-f171.google.com [209.85.160.171]) by alsa0.perex.cz (Postfix) with ESMTP id 80BE226533F for ; Tue, 12 May 2015 06:24:25 +0200 (CEST) Received: by ykeo186 with SMTP id o186so44241815yke.0 for ; Mon, 11 May 2015 21:24:25 -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=jAJ5U6o3aj91UXp4qsp1jHHeYYAIHvQb73+n0LIFW1s=; b=c0sVIeZHfuOZRwuLr9afZbl8vQaH0sUXRxn3o4oP5ghXo2ZX4L4qNhdqO6Qyf+xUhh dKkRCzKtR8jXK0ldz4SuBtzbuxS1hMmU3dghPK8uVe9R2Sop8FQOTk/0eXWlj5woPS85 s4jWbtJ/kv9Mpe45QTym97ncVRnl6gYehrDoACWJE+tUNZFN1K9oJmWwfH404z9bA6UM IITcmUn+6y6ffYN977Aj4KIyaAg4/6BUFYI8yC5Qizmx9Gm0/NVYRbD9eg2oRupKJB+V gUb3WlXnw+sH/5hEb+7HE+Kxmd58Y/+dFcsK0T/om3Sf6e3GAsB2jko+nIHmZSyn/2yZ 6qtA== X-Received: by 10.170.43.72 with SMTP id 69mr15028620ykl.29.1431404664956; Mon, 11 May 2015 21:24:24 -0700 (PDT) Received: from localhost.localdomain ([177.194.98.179]) by mx.google.com with ESMTPSA id k8sm14073447yha.18.2015.05.11.21.24.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 May 2015 21:24:24 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Date: Tue, 12 May 2015 01:22:59 -0300 Message-Id: <1431404580-17991-4-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 4/5] ASoC: twl6040: 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/twl6040.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index b8ecce2..4791f9a 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c @@ -1121,7 +1121,8 @@ static int twl6040_probe(struct snd_soc_codec *codec) mutex_init(&priv->mutex); ret = request_threaded_irq(priv->plug_irq, NULL, - twl6040_audio_handler, IRQF_NO_SUSPEND, + twl6040_audio_handler, + IRQF_NO_SUSPEND | IRQF_ONESHOT, "twl6040_irq_plug", codec); if (ret) { dev_err(codec->dev, "PLUG IRQ request failed: %d\n", ret);