Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2484148pxj; Mon, 10 May 2021 04:12:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD22bkn0lKN8FkO82XZ9zOWZoqieoTUfuGfdvV5/vrbcvEJIX2ozpnnos678PPQluk7sLk X-Received: by 2002:a02:3406:: with SMTP id x6mr20517469jae.137.1620645144444; Mon, 10 May 2021 04:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645144; cv=none; d=google.com; s=arc-20160816; b=isZIWwQT7zpO1lqLOzJ04Ad4x5wcBLKkdL05qSoOLaVFe8wy+Gcb5pjNIOi0Hr9/XN GMV7j6IXov7J6h/FlGKVAGEFE87cMnjx+YnSSfjiS60c99AY/CDddppcyTJ+WmRZLFSq nX8tX0V0N6xH+IfdEIbln6quWHcBrAHHEWrzNQh4DeuGWFIvmswjuAr6EdxzijAt8LGm wKB8I1XqnRSrNxLeXEirHpcsGaMlxQZBZLQy+LeUh7hwn0zCvzU4yaD4UWwUulgzDYGh fjdikgerabfpZb0bZRs7rWNrg9oPaIrX/8waqxYM1JbXRuuTb88NnKaO/on4sBJdRB+s 5AfQ== 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=ZpscEmJ2Rt2Y4AaSkU53qDeX+MbetngmcGjqmM9MqB4=; b=WmyR/DVnXsjJTZBApe2jWqF5Oq8bjS9++m2AMsaijbJ1I9T39WpYdxfU4pqNc4cYVe I5YHmACZ5ZluUrfP3oWlk+hQdQlmgOSabgID3XrS+/Oaa6N6DxtLONuv+TemHJj3gXqC 89SKURTsJw0jYgz7ON5gKT2ISUvs5mDkgr3lpocxWO1XF0WTL35ywreg6OtT+LDJdHLF YrzJ3gyH6NW7bwVi2T3m5ZXwie9zblMa4SFWm+j5/F33ObnFVpQdhpCqheaQwTtjckwW QePEvQOTmoFLknlSlnEPy9c7nTEnYlqjOgsnFtogAqECvcHIH/16+OaMz9W6Xn5yrs2H Tepw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CcoL3T9a; 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 n3si18622697ioh.98.2021.05.10.04.12.10; Mon, 10 May 2021 04:12:24 -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=CcoL3T9a; 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 S235706AbhEJLFy (ORCPT + 99 others); Mon, 10 May 2021 07:05:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:33618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232256AbhEJKp5 (ORCPT ); Mon, 10 May 2021 06:45:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 413BF6157E; Mon, 10 May 2021 10:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643000; bh=B6WblkSrQ9P/g3aJe8LqLVWa3NPPMKSXaO9IbXnTVvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CcoL3T9aV36J3VuiW+W1hfoQXjvFrh134mqZ/fAEL7LJVGZHi/NMGadAyYLu88r0V lB/DNsw00OjNyXrv+UpoMq4hI1I8S8MCfgMv/REQWf6FQh6pwhBT+MY6DN0GRcEAUl eys7vhEufiZEVC3a+CmA8XCrH+x8nnf+aVKPc6HQ= 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 5.10 138/299] power: supply: Use IRQF_ONESHOT Date: Mon, 10 May 2021 12:18:55 +0200 Message-Id: <20210510102009.524884681@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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 e7931ffb7151..397e5a03b7d9 100644 --- a/drivers/power/supply/lp8788-charger.c +++ b/drivers/power/supply/lp8788-charger.c @@ -501,7 +501,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 2df6a2459d1f..34f168f62178 100644 --- a/drivers/power/supply/pm2301_charger.c +++ b/drivers/power/supply/pm2301_charger.c @@ -1090,7 +1090,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 6b0098e5a88b..0990b2fa6cd8 100644 --- a/drivers/power/supply/tps65090-charger.c +++ b/drivers/power/supply/tps65090-charger.c @@ -301,7 +301,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