Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8580106ybi; Tue, 9 Jul 2019 19:03:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6iLDVyxO5FQAcYcX0nFB1zf6/ZXAXO0TMj7pZlpEwKhlkwLYz429QcSO5Dze79WtkvbZW X-Received: by 2002:a17:90a:2525:: with SMTP id j34mr3761354pje.11.1562724199499; Tue, 09 Jul 2019 19:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562724199; cv=none; d=google.com; s=arc-20160816; b=VOlge4nOhuVOuEBaEum6Mu9pBzumbHALu3GW9rSs6G0X3s2NxFwhaOs55ZYQBOu8Dr S3qBpQytkGZ5xzd5jIRtoP8fR4lvQFsIGfOb0LOxs4/D2jcsLlUUf68AJhbxaWNMK8OM NpOp13CXqZGZSa1KvF2EshhKrTDrINtqJInobC5g76v7khKZjl/3bbojGc4F03ZdCE40 ddpshDVe/ynvHvm/YsbLLze8+iXcTrjz5o1yxeVyhoAmJnmixtyRMTRh/TI+rO8O14o2 Ae4gxsqMHGmSthIWJp0nCYBdfDzr3XebDcGkGdygcRoDvcxbDAu0p1XDGKiX5kX9AjF3 eADA== 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:to :from:date:dkim-signature; bh=5ozlntHdL+bOtNT4Ao+TnnUuHHmNF6lXl3Z50ffu07w=; b=Z9CoJPik2b1SnWVaf31EXrjiPGO5EHMtHxJWwnZG6NsqwCPikFJ0UoCXfiMwN9Zu74 Nz2pYI5PQK5PCXUaRvmzINElcVZthNU9Vq7PoTa//p6hnfzJqFLFqSRmVdd4p7CB+J0Y 8PTwX6INHWdLY/f9erwI01/DA0LXAcHCe6Vsznvh4AoqNqbyyQfpn8YNo1dSiG9emAE1 8PRb0pfQPSMADnr0Fq420btmQjUisB2S8n92iOH+8/Fd4qdoDk4ON9UyUGm3LXVoCB6M 8A2/1ioe1Go6VB0WiYMQ60HgDfM4I1GQD76WGrk0SHqcXc4u7wWYjSFWXWUWBVA3xPyk 6/ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W8NM9kgb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si666980pgb.245.2019.07.09.19.03.03; Tue, 09 Jul 2019 19:03:19 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W8NM9kgb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726591AbfGJCCR (ORCPT + 99 others); Tue, 9 Jul 2019 22:02:17 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37411 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfGJCCR (ORCPT ); Tue, 9 Jul 2019 22:02:17 -0400 Received: by mail-pf1-f194.google.com with SMTP id 19so279574pfa.4 for ; Tue, 09 Jul 2019 19:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5ozlntHdL+bOtNT4Ao+TnnUuHHmNF6lXl3Z50ffu07w=; b=W8NM9kgbB7xliKIJEKnoVM053v5lDWkRfoaMeuHpmAd6ZCrXem052uVY+7963In31Z IBFu0UUcNMZaqsrQ28XjPseQlb0Fq0euCjm68QyY82ha87aMzOs4TjuM/0rvxAPO/+Yq Kgv5/tsvBb6X+JUDOBv/zD3a5Xqs/WhtvSdFEoKqX144BxgQD+G3pEGIvxKgor0+7xiF 0KYpLqJcZ0KFAWryEyauCFsWodJybldYm3+k0nkucj2zLJiK42CtFcTP/4HiXXxqoVz5 sPv8IxdAWi9dtmVquthytM65LXfhPVZSbzCUaAqORxDIJ6clB2jIumBGY5F2K8kX+ocd oJ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5ozlntHdL+bOtNT4Ao+TnnUuHHmNF6lXl3Z50ffu07w=; b=aatKDOzOJpYWFiz0PFJDg5fhxK9fzHRWLcbpg+iXQIO91jrMKcCKS5z1QMmi0N5bWe 4Dz5cAAw+uTFdsLJOvm4MnP3eAAKJvlz4cu3Uwdw/W0ze5wkkqcLx4QiXLBcbHesCTyN rw6Bdi8BGYso1M4utIbHyZqyy4Bb94Gyd/l+zWEGlV2Xnti6Y2DaEiKqkQNA6DM9yVW7 vS3fb1uEIx2zAjIrZIFlr/ffydiLpxw7jEuDICa2i9chyunlzZUaSGbO9iQr92AKVafW ikkvFfGIjVnadOu7F410bCtUbllPbov9xYl+tHO89WSANx3Qk2rkKMcQMRvRSHOrR4ob Sh2A== X-Gm-Message-State: APjAAAXoQ2DNhnIBsRiCvMbeH9jXcuFIi8h+aJAfzDLp1wIPX7QYq0+q +f7diFBa33W7ihQ+GsmQ2dE= X-Received: by 2002:a63:f346:: with SMTP id t6mr35149751pgj.203.1562724136460; Tue, 09 Jul 2019 19:02:16 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id k22sm337387pfk.157.2019.07.09.19.02.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 19:02:15 -0700 (PDT) Date: Wed, 10 Jul 2019 07:32:08 +0530 From: Hariprasad Kelam To: Ladislav Michl , 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: <20190710020208.GA12600@hari-Inspiron-1545> References: <20190704191026.GA20732@hari-Inspiron-1545> <20190705201006.GA22085@lenoch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190705201006.GA22085@lenoch> User-Agent: Mutt/1.5.24 (2015-08-30) 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 10:10:06PM +0200, Ladislav Michl wrote: > 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? Yes variable is not required. Will resend the patch without 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