From patchwork Mon Feb 12 16:28:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13553489 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EAE3C48297 for ; Mon, 12 Feb 2024 16:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=c3JxeMwkoPcEDQUCvHrxAJuHiBrSeCRvPc8K4z0byIY=; b=aFBIFTZ51YWYmU rzb4SzYkH/dliyq9F1VOERf43gUV4DitFL98y/7ZFaDchYctruiRXz+xywElUExlxVk586vbE50iU yXTbzPkhFnIEA/kcDVIkjqxi9yp4fQnCx0s0qs/qG1Vv5Q5gv1FA49swlAakPMUKsEU/BPjFcXsXv E1ERKSNatjPCrZfBmwgE3NimnSVYeVBkXQSD/Kob/iy26F3fqK7bJLA+8BFcLRpwC5lsvtkOFwY99 DX6LE2vQMAu6qGkOIQFs7HtfeTfKf580czEZw4ivPqB73+DPUgHY9sb53nPFU9BiKPvFiFUdt6Uvq XhRkmSfK9/qh7zJYMhZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZZAl-0000000689y-1p6V; Mon, 12 Feb 2024 16:28:47 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZZAf-0000000684L-470U; Mon, 12 Feb 2024 16:28:43 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41CGSXeS045183; Mon, 12 Feb 2024 10:28:33 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707755313; bh=zXYO7lK1k6ZbLMjJ3atq6vexiEb/Ht/2UM7FiDOlEBw=; h=From:To:CC:Subject:Date; b=gkharXyjdkRePbJdX8y5/s7In1GP+q0Lak59nwSfxcScDtvZML9ASF2/tkje/wPRv Vo0rNqc2ec9rbBW2HLX35FNsXb7b22AJcBP0edi4pIwbTTR59Eu5jw0qya/4mXHlMk nVUIZ4GNiULWS7hItIoG5lC8qAX7uPeAIfcg4SX8= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41CGSXwG008638 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Feb 2024 10:28:33 -0600 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 12 Feb 2024 10:28:33 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE104.ent.ti.com (10.64.6.25) 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; Mon, 12 Feb 2024 10:28:33 -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 41CGSWQu090688; Mon, 12 Feb 2024 10:28:32 -0600 From: Andrew Davis To: Sebastian Reichel , Manivannan Sadhasivam , Cristian Ciocaltea , Florian Fainelli , Ray Jui , Scott Branden , Bjorn Andersson , Konrad Dybcio , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno CC: , , , , , , Andrew Davis Subject: [PATCH v4 00/19] Remove pm_power_off use in drivers/power/reset Date: Mon, 12 Feb 2024 10:28:12 -0600 Message-ID: <20240212162831.67838-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240212_082842_203457_2A95E7F4 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 v4: - Fix sparse warning in [12/19] and [13/19] - Move data allocate from [19/19] to [18/19] - Add review tags in patches [7/19] and [11/19] - Rebase on v6.8-rc4 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 | 21 +++----- 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, 150 insertions(+), 266 deletions(-)