Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10464785ybi; Wed, 24 Jul 2019 23:44:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyiPbIiv4gpauerIeYHhcceLupoDDTqvk92CA9DQdxWQ88Zdbu4t6LMGJi69xn4ANOoBcy X-Received: by 2002:a62:2ccc:: with SMTP id s195mr15016042pfs.256.1564037068032; Wed, 24 Jul 2019 23:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564037068; cv=none; d=google.com; s=arc-20160816; b=PB7Zy8XrualTSNgUS4VcLoShhqEOwZgL55gwU8vy0zDDFJ7c3UEYS4yBikjyGIMOAN tgt4k+yNgiuyOMwWvkPCBDX0apxhfpoome+dNHyqFn0WlikrsMd7YeyvprnA6sUm4oqT zdgEuo3PqOK0YKMYkm0CObu/bkeKTDzr2AT+kDn077wb6BD/id7cK6qhDTyABtnvORzp ZF5Ylb4wg2tvXcUXQR/cR3d2p2zx55HAOhr597umY4jkyAze2pFsHsJsCUU6vp3fysB4 YCK+sURc8nFcSctHm9GbM6jo9kUK1zup9N9apCZRJ843JPef0fq0bjFbAhXH0E6qcLCb dtJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=iLLujW1HGNBaF9vKINmm53NiqEEyiuOnag8cOAMvxrM=; b=GlKCXAvn/XkEAuNp3NLfSPwi2ZkIz7Eopu319gc9D/EIG6YOyTWnRwMr12uqfkUmyd /RgyXz8/eZfHDCdXAZGWa9/JLdqFrkh6niK6Pz1Gm9qio49Qh6pHsMl3kAQ+Vk4x+VIj 4Z/coYIn/OfCBijH2Ut7W7hULUTUAKQwXu2mjbCh7vueAx0q4z5JwjTuKob9FMDx6kIS fF8OPAbre3+LyaCDfzoIIUk9cfk66ImPA2/zB1hrD8n3Pz5EcYM2MinqB8Ldf0PCATtF zyhsFcfe65njKBVNfH5OTr+pZ/VNLvsz0KZcWzv6uWiH17XxP3VXNnmDLTP7vXuqFQEz rnfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ad3wN7DZ; 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 g7si14009068plp.171.2019.07.24.23.44.12; Wed, 24 Jul 2019 23:44:28 -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=Ad3wN7DZ; 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 S1727707AbfGYGmv (ORCPT + 99 others); Thu, 25 Jul 2019 02:42:51 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:45009 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbfGYGmv (ORCPT ); Thu, 25 Jul 2019 02:42:51 -0400 Received: by mail-lj1-f195.google.com with SMTP id k18so46864204ljc.11 for ; Wed, 24 Jul 2019 23:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=iLLujW1HGNBaF9vKINmm53NiqEEyiuOnag8cOAMvxrM=; b=Ad3wN7DZ3DaVX+qdSYY/n7Z4eYa16reqYoVCW+9CBctuSaBnpjaAvPba+UtR8oySFW u2KPeLEjFl4v6b7KMThnfz3FPRvIH8j/3SGRLZMB5ugb19gStbP4E1M7XvJNMUnHTWsm oetHuZxAeHuOWt2EvdJjRwRMCvkoStHqYMgR7/K0/sExhy2Nv7R66BCyZd8C/Xf1OJAU 2gc3iNJZMKUTjiMirznRujiLizt1BmbNt2ssMqJo46o7FRk5g0P5RrwkG66ZAN+iEbMW pC5No+YIvzF29e3l5AaEUgDlWiX8anV4KFBU779QKe2mmVAKat2MmqL8HH4ICXh4MPp4 LlIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iLLujW1HGNBaF9vKINmm53NiqEEyiuOnag8cOAMvxrM=; b=dI0Xi5cDY3yjA611jm7MwGj3iTblJwfglTNfS1AxummuNiHVatFjgUlW/LrDZpJULC B6bJu1F0WQ3pd0dt6bUt0o1seT/Z8J8b6a8uYA/HIm/wBrj19OWU70htK4VMY7I7hu5y BrI6y08sKfioYlc14vGtQUGMrvYEAK6u8bPzUlC8w2qocDpg81yUO8eYIUzNy9fUxkk9 8Dkk5mcXVUNIuMXJ4W7h7H6yqTRWd5RfzVXOzCIxxpwXjKyajUOyaFMnqh9abFpzgTqz dY4ZYXyMo82zbPP3HgaBUYhkvZV9XBeXnADvAKmjxnJ5DG8/m+YcCfrsTwskhHjm1lqH kgNA== X-Gm-Message-State: APjAAAWy169LcnFSTcD6CjiCKsLs+op9A0ga8dGfbvdT+ntu56Zp6Apx VsUQGt4Uf2zKuF5JPkvhZDEDqTgHw3K5Cw== X-Received: by 2002:a2e:5dc6:: with SMTP id v67mr45397271lje.240.1564036969025; Wed, 24 Jul 2019 23:42:49 -0700 (PDT) Received: from ul001888.eu.tieto.com ([91.198.246.10]) by smtp.gmail.com with ESMTPSA id k4sm8939218ljg.59.2019.07.24.23.42.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 23:42:48 -0700 (PDT) From: Vasyl Gomonovych To: cw00.choi@samsung.com, krzk@kernel.org, b.zolnierkie@samsung.com, myungjoo.ham@samsung.com Cc: Vasyl Gomonovych , linux-kernel@vger.kernel.org Subject: [PATCH] extcon: max14577: Add irq mask IRQ_ONESHOT Date: Thu, 25 Jul 2019 08:42:38 +0200 Message-Id: <20190725064238.6435-1-gomonovych@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do not fire irq again until thread done This issue was found by code inspection Coccicheck irqf_oneshot.cocci Signed-off-by: Vasyl Gomonovych --- drivers/extcon/extcon-max14577.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c index 32f663436e6e..97c021512ffc 100644 --- a/drivers/extcon/extcon-max14577.c +++ b/drivers/extcon/extcon-max14577.c @@ -698,7 +698,7 @@ static int max14577_muic_probe(struct platform_device *pdev) ret = devm_request_threaded_irq(&pdev->dev, virq, NULL, max14577_muic_irq_handler, - IRQF_NO_SUSPEND, + IRQF_NO_SUSPEND | IRQF_ONESHOT, muic_irq->name, info); if (ret) { dev_err(&pdev->dev, -- 2.17.1