Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2490758ybi; Thu, 4 Jul 2019 12:14:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5psSjD5pD5Elo1fkUp6dnrRA84NUEKbCSD6ceBuwiURBt1J3DMoowQjX+ywBGBSaSlMdt X-Received: by 2002:a63:e0d:: with SMTP id d13mr76091pgl.5.1562267694133; Thu, 04 Jul 2019 12:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562267694; cv=none; d=google.com; s=arc-20160816; b=tgWMpLQeo/eqdl/ev/lGkIuWsB0B240EC+5YLLbk/DpLOJOgun9p0/u92woocqnO7Z PL56dee5T0H/omChkCzKAFSoL8E3XpY53l1qH8K6roFWEKw9VUqswcwu7drz/QujqUrY MwbhsWtOzInoyY5RJdQu64ycEcLHNnMuy3TpbIbfsRrCXClFGzOKLkNL8QYrnHkzVTuZ yQM7Ebw3H+snfpuosppaGFNYSIwKZV3g8/s0slMnGQ7UeFEA7H1nIDsRI+v0pHOH1Ck/ E3q3rAW+8pdGBYGeXDLBP2enSaK78a9u9rFhxv2TVCTjHM0OekMs2vFa8+/HJbf+20+i uo5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=eoeEYOdEqIZcZNq9pmeZ1c/pJgF9dtMJSkeiYBAiydQ=; b=vS2auIraOpsSxv68kkIhyPpxslHYq+sgA0SnnFqLFLRRFxswsN6Mdr96iZMiqA6CD8 kW7sxhg8mz/fpiV/mQD4MMnlmcEtKafRWEV2uUfZMYnrJ+Y/uYag6GUv6rRhB7Iz6eJK 22ckw8CKRplrXc3iceXmDH7YTCoRzL9h+ciZbBUYLWqlG8kicGP9/hL/NGxotieM354u fHpW4rNh8Y7gULcfw/Oz6HiO3aHHK1QsQQcWSV4KWOLkxvcaxUR0/7J2ZB9T9ucx5MWU sjOElyfMFCvjldFiI9JOhn9Pai7kHNBW3q92nyb+ts+0IrcMCnTTayF9lUASI5gdRxX6 1V7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="i89TR/RH"; 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 h12si5473633pjt.4.2019.07.04.12.14.38; Thu, 04 Jul 2019 12:14:54 -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="i89TR/RH"; 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 S1727116AbfGDTKf (ORCPT + 99 others); Thu, 4 Jul 2019 15:10:35 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38858 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbfGDTKf (ORCPT ); Thu, 4 Jul 2019 15:10:35 -0400 Received: by mail-pf1-f195.google.com with SMTP id y15so3281163pfn.5 for ; Thu, 04 Jul 2019 12:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=eoeEYOdEqIZcZNq9pmeZ1c/pJgF9dtMJSkeiYBAiydQ=; b=i89TR/RH7piu7X1G2CDukfVjSPIu/SqpUXrxtK/fbY++fQLTH+s6TUGWfRBi3Szjpb Ldv1rCeo/zE/Kueo63qiqWKBFb9+EFuzV/pC5Zs+hwFh38bOeBYVUSiZZ7mTagYabtnC SFgrzgyqiWfilRgSmuaUxIU6CM8OX81suJz5WaajShPmrQU9zF1aRxPOWvRFyjbt0+TP CGnhVDcxmLQbqj3XOysUoevjX70EP3d8H/SB7lymxT2oUradpMtkrLcfmreQn4PFyUYs SlqhJnrrTu7bk4HEqTdTpY9YGwpW/ZBtmoRlXeke14CHTzRsfLRnH+tXc+GH+wkmDUnN n5AA== 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:mime-version :content-disposition:user-agent; bh=eoeEYOdEqIZcZNq9pmeZ1c/pJgF9dtMJSkeiYBAiydQ=; b=HOJZJCB29/qoK42+HABv/ja45oOYXZMaFqbQoDOptr1b8NhtP0i6SfDpvHArW7+8P2 LmR8TSvYVChLfObeJ/48leRCYck8oG54lf0HxsIjYkmJBAq29X5sIhi93LVnoKHH5yds TFY5EVo6nu2OzzZjpCzAq9XlgUIk1BjHoxtxqmUPvSOhHOzyjr5gAl/CShx4ZEVSQ7Xn WBU71lAH1BkRTyUvm5Ch4R9BSvgv3PJ8Cf3dF6SsP1NqAqxY+PXfteuubl43XUJ7QL5E ZZYaI5tQRxVcyuqqRdMDbg4lJXpHO27quJNjaGY5W2rUPcCiEjcIto390BJ+bo2pcHc4 jgIg== X-Gm-Message-State: APjAAAXtD29AIHN+0MAyrQPwdS6aCxgFeiDkfmRrdlohNVcMdf7oxvc9 z3kfREt9T3SqsrkG4iCIXWUHVsvN X-Received: by 2002:a17:90a:8a15:: with SMTP id w21mr1147947pjn.134.1562267434822; Thu, 04 Jul 2019 12:10:34 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.81.29]) by smtp.gmail.com with ESMTPSA id t2sm6702982pfh.166.2019.07.04.12.10.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jul 2019 12:10:33 -0700 (PDT) Date: Fri, 5 Jul 2019 00:40:26 +0530 From: Hariprasad Kelam To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Vinod Koul , Hariprasad Kelam , Gen Zhang , Dan Carpenter , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] sound: soc: codecs: wcd9335: add irqflag IRQF_ONESHOT flag Message-ID: <20190704191026.GA20732@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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; 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