Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3782317ybi; Fri, 5 Jul 2019 13:58:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4c+YJ2pKQxAj94rAH6Ae8imSbSepWfzV3fKOyyJQ1paxBhELNmKm0xnHqBUjy8bA5grug X-Received: by 2002:a17:90a:33c4:: with SMTP id n62mr8051213pjb.28.1562360307916; Fri, 05 Jul 2019 13:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562360307; cv=none; d=google.com; s=arc-20160816; b=vDMyLPYnccp+HwNQZR6dNOuN3eR/XhAYa6Da1kVXRLx+V6xujqjTXktzcoSe+jnHbB 3cDGFW0G+RLRFoZrU74E4OZygqZdfci3NfJJdtLVX0vB+vk4cimcyjdPHmmehu8wCv3R aGF/fja4bPPQnYyB6P5C3dCUnPIs3WsUv8XOaBqO4EnvssZCbGmA2LErzWAJA3uxkn1y vH84b4VEXYigvauMnazVZqQAm8t7Khj71Cg8tLTNr4YPqCw8eAlzTonOSKInqzJMHztK tpXx9XJD9C9mLU5/Y+zl57+sQE8gaYRShHHeom8O4TecYWDj2ZSpVMXXiIN1gWAgSval lusw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hTIO2W6IYHMpaH1iGwTV3UYO/Mfxy7tz8XKlMYwPKK0=; b=Bhtw1o5f1mITePqkaq2blnHMJWxRQWRSxqbu7tZkgVoAMTjNwgjrq5DprxtRZcClrM QW3TpbP2ugy0unxaPcr1z485rQglGFaY28j/9+qN2RVafBIfB13xmUt2+kl1ToxrfCpI PeQvvE8JHGGH95tJGASi3YZA6iRaRCRHJ6luQsdO+S1BRlL3wARKRYrP/+dqDQ/db9bt RkdkdbSe8pgRCLN+Fv9qqe2Wyr98avuiibXlZbWRAbgB9O1agP0nn4f42fmEDRFO4grD ZVmZ2gnCGihoD9zWuCsi3Flc6XdUpZWnRUWvyoLX6U/kYNAatq/FQduK1Ezluy/UnHCE JucQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si3705552pls.233.2019.07.05.13.58.10; Fri, 05 Jul 2019 13:58:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727547AbfGEUKL (ORCPT + 99 others); Fri, 5 Jul 2019 16:10:11 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:36618 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbfGEUKK (ORCPT ); Fri, 5 Jul 2019 16:10:10 -0400 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23991965AbfGEUKHvIEHf (ORCPT ); Fri, 5 Jul 2019 22:10:07 +0200 Date: Fri, 5 Jul 2019 22:10:06 +0200 From: Ladislav Michl To: Hariprasad Kelam Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Vinod Koul , Gen Zhang , Dan Carpenter , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [alsa-devel] [PATCH] sound: soc: codecs: wcd9335: add irqflag IRQF_ONESHOT flag Message-ID: <20190705201006.GA22085@lenoch> References: <20190704191026.GA20732@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190704191026.GA20732@hari-Inspiron-1545> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 05, 2019 at 12:40:26AM +0530, Hariprasad Kelam wrote: > Add IRQF_ONESHOT to ensure "Interrupt is not reenabled after the hardirq > handler finished". > > fixes below issue reported by coccicheck > > sound/soc/codecs/wcd9335.c:4068:8-33: ERROR: Threaded IRQ with no > primary handler requested without IRQF_ONESHOT > > Signed-off-by: Hariprasad Kelam > --- > sound/soc/codecs/wcd9335.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c > index 85737fe..7ab9bf6f 100644 > --- a/sound/soc/codecs/wcd9335.c > +++ b/sound/soc/codecs/wcd9335.c > @@ -4056,6 +4056,9 @@ static struct wcd9335_irq wcd9335_irqs[] = { > static int wcd9335_setup_irqs(struct wcd9335_codec *wcd) > { > int irq, ret, i; > + unsigned long irqflags; > + > + irqflags = IRQF_TRIGGER_RISING | IRQF_ONESHOT; Why does this change trigger adding a variable? > for (i = 0; i < ARRAY_SIZE(wcd9335_irqs); i++) { > irq = regmap_irq_get_virq(wcd->irq_data, wcd9335_irqs[i].irq); > @@ -4067,7 +4070,7 @@ static int wcd9335_setup_irqs(struct wcd9335_codec *wcd) > > ret = devm_request_threaded_irq(wcd->dev, irq, NULL, > wcd9335_irqs[i].handler, > - IRQF_TRIGGER_RISING, > + irqflags, > wcd9335_irqs[i].name, wcd); > if (ret) { > dev_err(wcd->dev, "Failed to request %s\n", > -- > 2.7.4 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > https://mailman.alsa-project.org/mailman/listinfo/alsa-devel