Message ID | 20240208170410.67975-1-afd@ti.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-58415-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp315691dyd; Thu, 8 Feb 2024 09:09:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVBgiKl9LCjc8JIzi845r3maiOzymW93LqvP6fPXulwkPBIjcc69+F8d4frBQMBHtitUcOrDhrswso2wiQseIzcvHst9Q== X-Google-Smtp-Source: AGHT+IFre1zxUJi1QL0J6H8Cke9bNOrLIE/NjEmyaXYl3IfsRXeI11TjwpUVAtmCbT3PKTkIASHK X-Received: by 2002:a05:622a:412:b0:42c:5665:8090 with SMTP id n18-20020a05622a041200b0042c56658090mr170295qtx.3.1707412173247; Thu, 08 Feb 2024 09:09:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707412173; cv=pass; d=google.com; s=arc-20160816; b=ON2t1Lsh23c3kgjRKc7EAmUEpYva94SmQeh6yr8BoXRpcynhdFw0VxDEiEVyB0/FGY gN2+bM74vIZBve/QuYG53nog4u+ISabj7i5iuSM74jRUaa7uNlKEtvq52hFVC4tTY/oj qRP5zWEXd5NMeLuNsD3gppnI7MbNzPBxE8MvaO6w/+TfzB1r2SobYFcxhiczmVNEEldO F6M+vQtKCVX3m4FIG75wcF5EaT6sbaXhec57frU5BsBxdNQm8HfjAnaDmxdXJ1nmXabU 0DynJ9L7EaiYOzE0f//Li2xZDKgro2PMeXqGuXtwMY0uxUXNViE3b5p6OcQn+O69HfEf 6mhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=72kVJOjDQJkrwjM0ZlAP/foyy3XhLgjfJ5M64CNka8E=; fh=lpauPtEPouCAlVzwahCz2QKNI7dDa774waftubx2Tok=; b=EtlaZJF6fNyqxhvy0BdIwFrGzLSWcfUoXjuahHM2bNyJ8lBypdli6xgY863CbxDqjd p5h4SfYnJBbifJ+m8RTg2+/OEAhG3G3NMwW3gjqdCWe2GNY6KhS4x7IT7nbjXqCTQR/H oAdWacwa8MPSStrqL0Ls8b7/CNpGdjom3QH5l2fQ1hkSBD4LekJGnzrUm7AuA4Lz290Z BprBUKGC2VYCNN5vnm2Tur8X9Fv8NDtgBWGFQ8f8Ifr7KZbTNY1RCoJkBMk4R5ODHb6k GbNOFbUmzOsi0593vcj0ZpYz58CxqnE7Z9/8sB9IZQbuEFX7s88+kL7/8rNhKD9raetb 8/bA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Q6LWPO67; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-58415-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58415-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCW3wtbA5FwDf0tNLbquQM7j2i14ztuRMP/akbwg+ZN4p/7Ye5dSQtgRcO5mkuq0t7t6SNboZiSdWVEweOv1TSqQS/+Lgw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u15-20020ac858cf000000b0042c4afae1a5si401057qta.381.2024.02.08.09.09.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 09:09:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58415-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Q6LWPO67; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-58415-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58415-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0B9B21C20FE8 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 17:09:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C65C134742; Thu, 8 Feb 2024 17:04:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Q6LWPO67" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF9BC82D95; Thu, 8 Feb 2024 17:04:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707411880; cv=none; b=Q8a+i+EyVufzcuCTmcTago2WwOlzeqe9vIZF0U3MU+/1rv9B+CIxf0F2Jdc3TJ+ij32qAG8ybdoO4Tcbm4kH/sRYcDvoB4mTcAbUuBVK4M4SnepIxW0SgIoolNAUN9iHPhtsmKfD3elyu7vTu2SpPSoca8mkIv/5XCWF3rxRDq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707411880; c=relaxed/simple; bh=ItHAlQval55LDZXrx1TuWpoKDl5Vs+vyve96P+RrGac=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=R/crveQ+ic1I1ro9mS5FVMXn+fHtfOwcA2FgtqN9Xz8GtXJSG3jFnQCjmjkS4WUM8kvh818lIAYqVyjeRcV0CloHtswfZ6DX/s6kbfaPCD9JUfPupiSDqIk73AiAdQRFWvOyXgY+xf6NfE4fYDaqci66nctWuyeyJt1xBOlFip8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=Q6LWPO67; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 418H4CdW095444; Thu, 8 Feb 2024 11:04:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707411852; bh=72kVJOjDQJkrwjM0ZlAP/foyy3XhLgjfJ5M64CNka8E=; h=From:To:CC:Subject:Date; b=Q6LWPO6726DQWKoNr0ajun4Dqu1U2P5187Ko4KwBZrW/TR03Q1g85ZVEtaipsMH6Y k2i6J4XUeUHnhYXSOVJoWZ0rCGHRWCKWitoi7m5FZQSUFxWRJZIl5MiFsFYvSGXdnH +o+zKJ60NIm5t/ATewmTycO/GFi3qrsJ9OD4sml8= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 418H4ClS042364 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2024 11:04:12 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 8 Feb 2024 11:04:12 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 8 Feb 2024 11:04:12 -0600 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 418H4B62091006; Thu, 8 Feb 2024 11:04:11 -0600 From: Andrew Davis <afd@ti.com> To: Sebastian Reichel <sre@kernel.org>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Cristian Ciocaltea <cristian.ciocaltea@gmail.com>, Florian Fainelli <florian.fainelli@broadcom.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Sean Wang <sean.wang@mediatek.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> CC: <linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-actions@lists.infradead.org>, <linux-arm-msm@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, Andrew Davis <afd@ti.com> Subject: [PATCH v3 00/19] Remove pm_power_off use in drivers/power/reset Date: Thu, 8 Feb 2024 11:03:51 -0600 Message-ID: <20240208170410.67975-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790351426871873545 X-GMAIL-MSGID: 1790351426871873545 |
Series |
Remove pm_power_off use in drivers/power/reset
|
|
Message
Andrew Davis
Feb. 8, 2024, 5:03 p.m. UTC
Hello all, Use of pm_power_off is considered legacy and should be replaced with register_sys_off*(). Same for register_restart_handler(). Do this for the drivers/power/reset subsystem for all trivial cases. Thanks, Andrew Changes for v3: - Use dev_err_probe() in patch [11/19] - Add review tags in patches [18/19] and [19/19] Changes for v2: - Fix sparse warning in 7/19 and 10/19 - Add new patch fixing an already existing sparse warning (3/19) - Rebase on v6.8-rc3 Andrew Davis (19): power: reset: atc260x-poweroff: Use devm_register_sys_off_handler(RESTART) power: reset: atc260x-poweroff: Use devm_register_sys_off_handler(POWER_OFF) power: reset: xgene-reboot: Use devm_platform_ioremap_resource() helper power: reset: xgene-reboot: Use devm_register_sys_off_handler(RESTART) power: reset: tps65086-restart: Use devm_register_sys_off_handler(RESTART) power: reset: tps65086-restart: Remove unneeded device data struct power: reset: brcm-kona-reset: Use devm_register_sys_off_handler(RESTART) power: reset: axxia-reset: Use devm_register_sys_off_handler(RESTART) power: reset: rmobile-reset: Use devm_platform_ioremap_resource() helper power: reset: rmobile-reset: Use devm_register_sys_off_handler(RESTART) power: reset: mt6323-poweroff: Use devm_register_sys_off_handler(POWER_OFF) power: reset: msm-poweroff: Use devm_register_sys_off_handler(POWER_OFF) power: reset: msm-poweroff: Use devm_register_sys_off_handler(RESTART) power: reset: regulator-poweroff: Use devm_register_sys_off_handler(POWER_OFF) power: reset: as3722-poweroff: Use devm_register_sys_off_handler(POWER_OFF) power: reset: gemini-poweroff: Use devm_register_sys_off_handler(POWER_OFF) power: reset: restart-poweroff: Use devm_register_sys_off_handler(POWER_OFF) power: reset: syscon-poweroff: Move device data into a struct power: reset: syscon-poweroff: Use devm_register_sys_off_handler(POWER_OFF) drivers/power/reset/as3722-poweroff.c | 30 ++++------- drivers/power/reset/atc260x-poweroff.c | 55 ++++++++------------ drivers/power/reset/axxia-reset.c | 16 +++--- drivers/power/reset/brcm-kona-reset.c | 11 ++-- drivers/power/reset/gemini-poweroff.c | 16 +++--- drivers/power/reset/msm-poweroff.c | 25 ++++----- drivers/power/reset/mt6323-poweroff.c | 26 +++++----- drivers/power/reset/regulator-poweroff.c | 36 +++++-------- drivers/power/reset/restart-poweroff.c | 25 +++------ drivers/power/reset/rmobile-reset.c | 35 ++++--------- drivers/power/reset/syscon-poweroff.c | 66 ++++++++++++------------ drivers/power/reset/tps65086-restart.c | 58 ++++----------------- drivers/power/reset/xgene-reboot.c | 21 +++----- 13 files changed, 152 insertions(+), 268 deletions(-)
Comments
Hi, On Thu, Feb 08, 2024 at 11:03:51AM -0600, Andrew Davis wrote: > Use of pm_power_off is considered legacy and should be replaced > with register_sys_off*(). Same for register_restart_handler(). Do > this for the drivers/power/reset subsystem for all trivial cases. Apart from the issue in patch 18 the series LGTM. -- Sebastian