From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E82CDC3DA7D for ; Sun, 1 Jan 2023 18:17:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbjAASRe (ORCPT ); Sun, 1 Jan 2023 13:17:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjAASRY (ORCPT ); Sun, 1 Jan 2023 13:17:24 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36BC52BC4 for ; Sun, 1 Jan 2023 10:17:22 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A8A565C0059; Sun, 1 Jan 2023 13:17:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 01 Jan 2023 13:17:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1672597038; x=1672683438; bh=6LDx433akbFpSiQ89PhisoZU8 bENmFplx9mTGmrQgOM=; b=Q9EfSji/0XtghxbDEayzsGshv48PRiYKYF8ZD0tDm IfU1KTb/NnGFmyYNTIbzs0z5AYzd7yX0mTuMwkA+7NBZnBZPSr1PSO3yR1E+lkKa ll/fNvui0sLOrPrpW8syEtmXJFWkXYtgbH2oU+pOQYToLowD6tsqa/Qq6FrzduXr 1CeIrzIzpF7ZM9aZ8r5ktr1vSDfoK9c8AsA7it/1Tnurc/gCV1Y+TKVA8xmDCIV/ IO161AqfpN1e+J1ln2zuTLjZMdBpDixKCpEcOLwusaQV29eyKc/2ZOoNYWAFXzvL /iCQka2rQMDB+hzHAJg04iGxVEZ8yEVknke4nXQ07EhVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1672597038; x=1672683438; bh=6LDx433akbFpSiQ89PhisoZU8bENmFplx9m TGmrQgOM=; b=Fxmt4EEH6mO+pOE/4iOsKz5boymdNR5Tadith97AV1bnx8oEOaT cYOiYf6T52oXZSpMW1xeaBzixVoB3AKp+aCAMwB4Tm7iaqqIiQXSRYO2OXwG2osq 8meYHYe9JON4n/UXDq+f+mV9PLXT3UkmSKiIHUSSgMjyeyk3cfYdTEDVitlrrfOE WgW08WSNLjMME+h6EWkblnoXjcJmhS0XzkTwRrvl0db38sTy0eDSIuShqymP7lw3 pcZ73FV+24HBYQkgNPJnJtI2DaxZtf00S/AR1d0YlrxMFIWCA9TN7jM8T1ZXMEQn XXGDK2uR0CPlJ0HmZsl44AB0uc3Iui4hi0w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrjedtgddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeehffethedtteffgfefteetjedvfeelueevudffgfeutdejvdehledv vdffhfevnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgu rdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 1 Jan 2023 13:17:16 -0500 (EST) From: Samuel Holland To: Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Dmitry Osipenko , "Rafael J . Wysocki" Cc: Samuel Holland , John Ogness , Kai-Heng Feng , Luis Chamberlain , Petr Mladek , YueHaibing , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tangmeng Subject: [PATCH v2 0/2] firmware/psci: Switch to the sys-off handler API Date: Sun, 1 Jan 2023 12:17:13 -0600 Message-Id: <20230101181715.42199-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I want to convert the axp20x PMIC poweroff handler to use the sys-off API, so it can be used as a fallback for the SBI poweroff handler on RISC-V. But the PSCI poweroff handler still uses pm_power_off, so done alone, this conversion would cause the axp20x callback to be called first, before the PSCI poweroff handler. In order to prevent this change in behavior, the PSCI poweroff handler needs to be converted to the sys-off API first, at a higher priority. This series performs the conversion, after accounting for the fact that the PSCI poweroff handler is registered quite early during boot. The first patch is a dependency for both this series and the SBI series[1], so I would like to get at least patch 1 merged soon. [1]: https://lore.kernel.org/lkml/20221228161915.13194-1-samuel@sholland.org/ Changes in v2: - Update commit messages Samuel Holland (2): kernel/reboot: Use the static sys-off handler for any priority firmware/psci: Switch to the sys-off handler API drivers/firmware/psci/psci.c | 9 ++++++--- kernel/reboot.c | 10 ++++------ 2 files changed, 10 insertions(+), 9 deletions(-) -- 2.37.4