Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp3002291rwl; Sat, 5 Nov 2022 15:35:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7MuvBZyICXKQucT85XJX67PyHGzLdASbWko0SPNp1yIHLQIX0HB1vlrLEk6nOHIBzZ4TBQ X-Received: by 2002:a17:906:504f:b0:7ad:fc14:fed2 with SMTP id e15-20020a170906504f00b007adfc14fed2mr21036741ejk.611.1667687726940; Sat, 05 Nov 2022 15:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667687726; cv=none; d=google.com; s=arc-20160816; b=LPbAGFvXOOccZiJMzkbedJ3cuHxxytX+PGr/3imk8ci7LN3KJqzhNXUZJ7tQqePqz0 YmnA82P/kYpwrmgvGJHA/3TbL4wvlC4cDlzFWS/mxFBK6HCNZ0cOCxTHkhy9J8YEk86b 9Wiuml/+ygdnk2uxiYal/RraYWcYJL7nwHVXGp38nQnZxKXr+TxZJF1iB84Xhxkl+tW8 g5Zk5SWFNVtm8Lk+dpgr96euSUBKs6SN73fYzRH2FaAPZa/v+Ng385DMD2e5YjQhxH7g AdrAqPBuv4IYblgP03z+9/N+xGfK2Y1pzQ4CrPgu+Hb8If8KGmj3ewOXyJBX5H2s3dFQ 42tg== 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 :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=s+pdBoQbiwpKAIIB+oAbcaTA6YS444zDU3WzHbz8XM4=; b=0oS764pFMGz5N1nZAeKHTICpSV/1rLO/ZqfLgEPNMSNrR5av6Qn9rgoCSwt8fOyFZI +hOU36+6kxoYce1+QPKl6yBFT2AqiJUKbq3VLzbAIpcpZHpLkJB3pZxItD7pLsaR5wOd cgOQA0QSe1NtcAz7Wvpc0K1IAv4JTR/hWFJUOcJVUfCYEtU6G4wTnjOJX/xPZWPvPHfZ B2BVobVNqPbe4jr/p3oSIizppe92OPhBTyAgJVIo2OuTqHaZP4+vJ01mAaLpzbbbbYOh 7RKRgMacFWhXnIV5IWaVUj4ej1ak/aI0QYVOdkelM9mBSwWnYbEiLc2gqDKYr2GLWbOo VQwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=CtzJlsRL; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Q7MKvu+Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq28-20020a1709073f1c00b0078d85177210si4269215ejc.756.2022.11.05.15.34.58; Sat, 05 Nov 2022 15:35:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=CtzJlsRL; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Q7MKvu+Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbiKEVtG (ORCPT + 97 others); Sat, 5 Nov 2022 17:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbiKEVsp (ORCPT ); Sat, 5 Nov 2022 17:48:45 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E916B13D5D for ; Sat, 5 Nov 2022 14:48:44 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 097DD32003D3; Sat, 5 Nov 2022 17:48:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 05 Nov 2022 17:48:44 -0400 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=fm1; t=1667684923; x=1667771323; bh=s+pdBoQbiwpKAIIB+oAbcaTA6 YS444zDU3WzHbz8XM4=; b=CtzJlsRLFv4TPmZbXoy6s0eTuqHwZ6mUYfPJ077oY CuYBs1/bwThMKONbJ0Y2yiR8fP561idl8SxqmvItLWB2iYx1EEkwUTYfyCBjF9Cz XibjEPDrWv0+YdxoujJNbFe+azUkxIdWgux4IO4R1G4P36RPyE1ERhn4p/NvkLAt MdLX0ru0GPSJgoPZ6x7G3epgSybHLX7SX0OgIAeu76nQgRt4YQiVurjoNJ8CjNzo hxTfa/Nl4wxxoibt+FYL3b3IarqBKidxOCgWil1wyHktnWRW328Nu2O6rW+SE2mh uSgvN9KQTUHITbZxsyh1Y0/7diZKc5NLAqscDE3nGxy3A== 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=fm3; t= 1667684923; x=1667771323; bh=s+pdBoQbiwpKAIIB+oAbcaTA6YS444zDU3W zHbz8XM4=; b=Q7MKvu+ZYbhCipByUzJg8syDU86MNt83H/cEaPzCqU1M9j6dqfQ glI2upT4a/uEf5AnovRw6IQr43drswOOPsXSJt+UNBai330eTfEG4r058gu7oBDw w5Ih78oiCK9FxF6KF6iSEGHLpfFTr6HgZtN4QSyOfB2Hq4422WrbsIdMU2uqrUrV lhFY/vC0Q3HVcXOsRh2GAPX4yPSFSgLOR9Z0WLhIMjjPKkVykLlZw85Z2onCYh33 3gTmdoE3zLMB4m3ULhSLA6fB2+nNNaZ4BLWraHfJE/o52tB/pFllqXsoulKTmBw1 tj38tID0wiLpNQihFORmPfs2jx8KEDjLofA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdeggdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeekveelhfejueelleetvdejvdeffeetgeelheeujeffhefgffefkeehhffh keekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 5 Nov 2022 17:48:42 -0400 (EDT) From: Samuel Holland To: Dmitry Osipenko , "Rafael J . Wysocki" , Mark Rutland , Lorenzo Pieralisi Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland Subject: [PATCH 0/2] firmware/psci: Switch to the sys-off handler API Date: Sat, 5 Nov 2022 16:48:38 -0500 Message-Id: <20221105214841.7828-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am interested in converting the axp20x PMIC driver to use the sys-off API for its poweroff handler, 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 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. 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.3