Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8591629ybi; Tue, 9 Jul 2019 19:17:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgKqAapMmCTDq2xEAUmNNRqM43FPeO3LX3na70ZqNL7GqeN/BPTqsiOK07LW9CDGCKsyN4 X-Received: by 2002:a65:6448:: with SMTP id s8mr34372082pgv.223.1562725078135; Tue, 09 Jul 2019 19:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562725078; cv=none; d=google.com; s=arc-20160816; b=vpAi22JO6ccYjGpfbtR0W7fIRAcA6/5phIEkmfXqN8c61TO+rBVFqMEVg5IVECSemj JIUlGBcm9AII4iSHS5l4jrOuR+dS4l6pzsI0k7gZ3fmv9/i5oeLXeWz7huu54lFPv0xQ WbTx1yLGm1R6XYo9Wg+0BaNYZ2fIk1JhH49TUF29TH87pABEMJbDR1t1yDgXA1iw7+xs vYaajytJq/fePbOWBesxwCKy2MlLAY7uB8AID2oVXZ/kLx0woCOFfVLNBxBrOKoxbQqD 5lGJLx190BVWAHEunrW6Ig+VzAsZLU/xdmNZDrhYUXNq/zfPABfv2qBd+Vwny7NRKFbc Qy2Q== 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=IZY6bRwRAQjzoXQqf8HuJovnIklLNuUq+A5t+/AooUA=; b=s1SQVTIe1wfgrF+6hYXWCwB5sVt40hF2BVAuX2gDETXk8CQ7MS1zUyPIBYj/jjwaX1 yqzpq2RQgTq8udyq9i2SSMaAduZRpHtv51kq8ow12/eFLTfKLZC3VSmD8BfGFWPyXFJO PRujFwJjVV2+XDan8+aCxmWchu2+wz8/4ZPeuD3ar8icGJT7R9bPBotGfyOCUXxH2vs3 0zYJGwLn7dobbSaNOWmNpxbGqpXbKTN3uTbVZSwKFvJQiPsmuRQtp9CXTsa5YKpXFm4Y DMAcl/kP7Fnz524INdRuFREVT+NbpH8GPNrh/QF9fD+ypX2hte2tYWs8l9KSbXAqLwFh Jm5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rSjHXX5v; 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 p1si795147pff.250.2019.07.09.19.17.42; Tue, 09 Jul 2019 19:17:58 -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=rSjHXX5v; 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 S1726658AbfGJCQg (ORCPT + 99 others); Tue, 9 Jul 2019 22:16:36 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:40945 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfGJCQf (ORCPT ); Tue, 9 Jul 2019 22:16:35 -0400 Received: by mail-pf1-f194.google.com with SMTP id p184so290301pfp.7 for ; Tue, 09 Jul 2019 19:16: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=IZY6bRwRAQjzoXQqf8HuJovnIklLNuUq+A5t+/AooUA=; b=rSjHXX5vdjCegktJNlazWg3hrKdWgPp1/UN6PCwb8y2g2db+sbKKA2yiv/7eUD679w qol/0/0On+lk1JFARxqxj/GWoiSTxfk861mv3xLN/2EK+HORDzSwW0du4f+rXYqC4bZj jRvpHIUpfeKQ+WhWOvXKsbBkWYepuEa3BWzXShSq5kZbFhz9sLHFbqiaJDcvvW7hS5GH 8FSvlDMkpHcvcCQMyoIW7zRMTd25W4uw+2xdu2S83k+golNx+kwVv1K1R7PDb2HfhtJr iVjBzmuhIPaYIcTZg+/Hc3GZ4bcXTa9SOefa51arS82sl7q+7yxo0K36tye+Zy5VwoEJ hR8w== 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=IZY6bRwRAQjzoXQqf8HuJovnIklLNuUq+A5t+/AooUA=; b=A/4Xp4pnXEiVHv4jz/JLoe/EIfgscDtaKrwrp+kNBMQCQNXT+9YMSfq5nKkYRc03bZ 2H8047bHcHFq6aFTFuDK5XfL5MemUAjx2OI8g8ROQoIpjC+QDsb9vObtZsBct01moAlp vYVNoQs6hjA6XflQxyZkApt/hIyPrIJsbZecsTkzfl9Wpvf9DN75pGj0dkYfgddDeWnG aC0usirvbFgDiEDwdpDXFZ31otJ9WjU8pdrQ5reZAiLES3mcrD5gwLER6eNZ4IdUKbRm 95nPaCTyYQHQqivemKbcujT5UuP2ueWU81Mxh2kEMx6/ffZJNG8iF3NI9OqDA6pY1pEh H76Q== X-Gm-Message-State: APjAAAU+wSRZuJxIZzsF6zBfBJifUjZYI5Ipp3F0vS+XtGE2R3+Vzv1s IOUyBhnH5VpiChkf8kfQJ0I= X-Received: by 2002:a63:7e42:: with SMTP id o2mr33754977pgn.162.1562724994909; Tue, 09 Jul 2019 19:16:34 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id z20sm404943pfk.72.2019.07.09.19.16.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 19:16:34 -0700 (PDT) Date: Wed, 10 Jul 2019 07:46:27 +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 v2] sound: soc: codecs: wcd9335: add irqflag IRQF_ONESHOT flag Message-ID: <20190710021627.GA13396@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 --- v1 : add IRQF_ONESHOT and introduce irqflags variable v2 : remove irqflags variable sound/soc/codecs/wcd9335.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index 1bbbe42..9566027 100644 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -4062,7 +4062,8 @@ 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, + IRQF_TRIGGER_RISING | + IRQF_ONESHOT, wcd9335_irqs[i].name, wcd); if (ret) { dev_err(wcd->dev, "Failed to request %s\n", -- 2.7.4