Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp302232pxj; Thu, 20 May 2021 09:38:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyji5MVUNW/AZ5rhJ/2+tKFrtYjSMMxiVQI5FiKSjV3DVRcteQ2ZnVFYA++ZrX66i0rqnwB X-Received: by 2002:aa7:d058:: with SMTP id n24mr5959275edo.275.1621528735189; Thu, 20 May 2021 09:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621528735; cv=none; d=google.com; s=arc-20160816; b=kb/Ak9/Y4kqg2oyebfBAFzszbVh7pvE41EfF5xHS203RQtSWGR6npMJ/8ejXkJH68P n3PsGM0t2GQuNQQVVpEDVGwu8qC5OgeTkFMVGb9rLlEUEK+fhkaeuOB7HTLkXJFGAIeF SMI0RoI7fx57o61HIX3jPuf9ryA+q5pMymNZyH41XDRqNnZXeRJBWL7gOLWo8LRbhKIq 0OF/tDqXjxb7I8ThXGGp/Eh794K3ue29xWd/r+D3z4lb2gLLn3cA/sF3PgcqMkyzVd2g 3NCaeb9ynmpbWSAsgamU47Bf4zQ1pAbiKNg9AN5xc6vB33vG7qrhNFVss4T/85awdh6k oGtQ== 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=G2N2efAbv43EwBoU3vyFssMDmn6dMSbaalPnWefzzRU=; b=TIJj2wEiibvEgQXYQQ14v3EFT0aSb1trsJSVtrAyVjBGjyIORulIN9G5BGYhz16gsu FGWLl+nJrnU+wG7ZzR9wYBA7TdPg9jACiXuhwoub2/Lo/4hI5mISNb9pzm53wOVWQFA0 JYzH5w/xztm4SWAzbfXB2ogKaFBzJFQ60epw9YZZBoq2yfeJXMZoJvuA1a3EL4hURA1O Xm47ZDbqcSNRBspiZ62twg2ZZZ7LG5ilSKbEuCfpGh8/fsQFu3SEbGhOWEL2PvWVfaAL xV24tQ0eQFqu981jJ+Ck1cRuDcf4HIUnEbdQawPZ71v/kXij66F8FJNJUWQVnMdITWFx kXEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SVq6GCGj; 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 m1si3029551eji.731.2021.05.20.09.38.31; Thu, 20 May 2021 09:38:55 -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=SVq6GCGj; 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 S233225AbhETJke (ORCPT + 99 others); Thu, 20 May 2021 05:40:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:41380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232949AbhETJis (ORCPT ); Thu, 20 May 2021 05:38:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B40586141E; Thu, 20 May 2021 09:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503060; bh=T8c2GFKzfBSAVDvYXAoBunImRbFzDs8oXQPT1cEudlI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SVq6GCGjlAiTcRMywMO5GkQ9FpqNE8Y/wVwww0jBb0Zg9qlcw3n5xdcfS/k4LgZpR ftsAFpiSH81YPvw+8s+YEcoHH18bXx3HVuZZ/6xdCChb3iiQHKFZ5NeegxJ3LbU/Ud B7hWzji98iSVORUwMgm0itYgI3H/Rx3yF8nxtCQI= 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.19 051/425] power: supply: Use IRQF_ONESHOT Date: Thu, 20 May 2021 11:17:00 +0200 Message-Id: <20210520092133.105996218@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 814c2b81fdfe..ba33d1617e0b 100644 --- a/drivers/power/supply/tps65217_charger.c +++ b/drivers/power/supply/tps65217_charger.c @@ -238,7 +238,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