Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp405092pxj; Thu, 20 May 2021 12:03:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSsi26+SuugZnSr5dosphuWSeEn+1I6as61GIL1OGKEjbN3xeQUEtyjmgLk27i9xsrkRN+ X-Received: by 2002:a92:cd04:: with SMTP id z4mr5699109iln.39.1621537395148; Thu, 20 May 2021 12:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621537395; cv=none; d=google.com; s=arc-20160816; b=oIvSpAZLxX1BeRA9hw4ditjtQ0hsz5wImNSg7vdY8HgFX26gxgCAZvR9cYtBAOkPF4 VZTAoQZJRm9RHIlk65dOZvRSVmxiPrUVrs+EI2san1zUrRpxWRx9Ygo0rupg9dA9seRI EKf8walTeZ06InnFXziBllN+CB6eXx/e17Db6gKm4OBx1+HPf02DPRl0EoEWE948TcKu fFvxKHjIzzgAIOOt8nj9jpEJEUbUW8gMtol5jfQQ8u5YBeTsp/jy2K5bv0mp+7kFytud oGZmwAiiQlkYgf3wlaBTF+SceT32AXdywpdGy7aNYMe/XSFP+7Qmw5vazzO4VdlWVppC h6Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vZQhhfgMm/093TctCuGnDxam/4u4iLwSJ3s2Gyfjt18=; b=M4j114bCUh3Yf/+IFboaW6Gcs3FUSU03d3cDGNLwKSLL9qM6AQAp/WHMCYv6/ZWsdj cDe6dBkeB3sUVbV66oe8LBRIJUKnVSjHctGVxiCgh2urQNYDA2ZV0nfW77cgd8SD5nSc sY90WVbtgeJKYDKOLUn6cXSfUu4LJT9A+sWSSHFfSmgg9ztgLs+AZluAHludnubcEHKH oDWPCfM9b/5Z4niStP2JiX+2NzoU032YUMcOHd5v5OCIM050hxZazcXl4NGq3K4Ac38B IcOgXY9hp2PKrUkQQEUKKHBq5fd7pwNIddL+cdSOx2kgvQOy9KQzqN5GbIX/fmrXC7uR K2nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z+3Ppo87; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si3753172ilu.78.2021.05.20.12.03.02; Thu, 20 May 2021 12:03:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z+3Ppo87; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236697AbhETKbO (ORCPT + 99 others); Thu, 20 May 2021 06:31:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:51824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235236AbhETKTG (ORCPT ); Thu, 20 May 2021 06:19:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 92510619A8; Thu, 20 May 2021 09:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504012; bh=l+lPckUWtfmMfgnw1V58b39aVdu81Xf38AqpRgERYek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z+3Ppo878OToTOny/yOFO++EXdPhQA0p+zO+xRFq5Qowe8I6AY+N7zVChlftk6arZ syp/3UE3/rZlsm6c8hgBHf5/t0kzn2/BXJOL7wkKEJrlYhn+nwW8VTIe6DZTNudtPj BlShbLr+JIRExOSwJ67UpBN1W2NbjZrT27ci+DPs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, dongjian , Sebastian Reichel , Sasha Levin Subject: [PATCH 4.14 053/323] power: supply: Use IRQF_ONESHOT Date: Thu, 20 May 2021 11:19:05 +0200 Message-Id: <20210520092121.918626585@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: dongjian [ Upstream commit 2469b836fa835c67648acad17d62bc805236a6ea ] Fixes coccicheck error: drivers/power/supply/pm2301_charger.c:1089:7-27: ERROR: drivers/power/supply/lp8788-charger.c:502:8-28: ERROR: drivers/power/supply/tps65217_charger.c:239:8-33: ERROR: drivers/power/supply/tps65090-charger.c:303:8-33: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: dongjian Signed-off-by: Sebastian Reichel Signed-off-by: Sasha Levin --- drivers/power/supply/lp8788-charger.c | 2 +- drivers/power/supply/pm2301_charger.c | 2 +- drivers/power/supply/tps65090-charger.c | 2 +- drivers/power/supply/tps65217_charger.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/power/supply/lp8788-charger.c b/drivers/power/supply/lp8788-charger.c index b8f7dac7ac3f..6dcabbeccde1 100644 --- a/drivers/power/supply/lp8788-charger.c +++ b/drivers/power/supply/lp8788-charger.c @@ -529,7 +529,7 @@ static int lp8788_set_irqs(struct platform_device *pdev, ret = request_threaded_irq(virq, NULL, lp8788_charger_irq_thread, - 0, name, pchg); + IRQF_ONESHOT, name, pchg); if (ret) break; } diff --git a/drivers/power/supply/pm2301_charger.c b/drivers/power/supply/pm2301_charger.c index 78561b6884fc..9ef218d76aa9 100644 --- a/drivers/power/supply/pm2301_charger.c +++ b/drivers/power/supply/pm2301_charger.c @@ -1098,7 +1098,7 @@ static int pm2xxx_wall_charger_probe(struct i2c_client *i2c_client, ret = request_threaded_irq(gpio_to_irq(pm2->pdata->gpio_irq_number), NULL, pm2xxx_charger_irq[0].isr, - pm2->pdata->irq_type, + pm2->pdata->irq_type | IRQF_ONESHOT, pm2xxx_charger_irq[0].name, pm2); if (ret != 0) { diff --git a/drivers/power/supply/tps65090-charger.c b/drivers/power/supply/tps65090-charger.c index 1b4b5e09538e..297bf58f0d4f 100644 --- a/drivers/power/supply/tps65090-charger.c +++ b/drivers/power/supply/tps65090-charger.c @@ -311,7 +311,7 @@ static int tps65090_charger_probe(struct platform_device *pdev) if (irq != -ENXIO) { ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, - tps65090_charger_isr, 0, "tps65090-charger", cdata); + tps65090_charger_isr, IRQF_ONESHOT, "tps65090-charger", cdata); if (ret) { dev_err(cdata->dev, "Unable to register irq %d err %d\n", irq, diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c index 1f5234098aaf..7295c1b13f93 100644 --- a/drivers/power/supply/tps65217_charger.c +++ b/drivers/power/supply/tps65217_charger.c @@ -250,7 +250,7 @@ static int tps65217_charger_probe(struct platform_device *pdev) for (i = 0; i < NUM_CHARGER_IRQS; i++) { ret = devm_request_threaded_irq(&pdev->dev, irq[i], NULL, tps65217_charger_irq, - 0, "tps65217-charger", + IRQF_ONESHOT, "tps65217-charger", charger); if (ret) { dev_err(charger->dev, -- 2.30.2