Message ID | 20230928123204.20345-1-francesco@dolcini.it (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-pm-owner@vger.kernel.org> 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 89BB9E732C5 for <linux-pm@archiver.kernel.org>; Thu, 28 Sep 2023 12:39:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231542AbjI1Mj1 (ORCPT <rfc822;linux-pm@archiver.kernel.org>); Thu, 28 Sep 2023 08:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232446AbjI1Mj0 (ORCPT <rfc822;linux-pm@vger.kernel.org>); Thu, 28 Sep 2023 08:39:26 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 977BC191 for <linux-pm@vger.kernel.org>; Thu, 28 Sep 2023 05:39:25 -0700 (PDT) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 87420211ED; Thu, 28 Sep 2023 14:32:47 +0200 (CEST) From: Francesco Dolcini <francesco@dolcini.it> To: Sebastian Reichel <sre@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: Francesco Dolcini <francesco.dolcini@toradex.com>, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/4] power: reset: gpio-poweroff: use sys-off handler API Date: Thu, 28 Sep 2023 14:32:00 +0200 Message-Id: <20230928123204.20345-1-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series |
power: reset: gpio-poweroff: use sys-off handler API
|
expand
|
From: Francesco Dolcini <francesco.dolcini@toradex.com> Use the new sys-off handler API for gpio-poweroff. This allows us to have more than one power-off handler and to have a priority for the handler. Also, add a priority property so we can use gpio-poweroff even when registering another poweroff handler or using the legacy pm_power_off method. Stefan Eichenberger (4): power: reset: gpio-poweroff: use a struct to store the module variables power: reset: gpio-poweroff: use sys-off handler API dt-bindings: power: reset: gpio-poweroff: Add priority property power: reset: gpio-poweroff: make sys handler priority configurable .../bindings/power/reset/gpio-poweroff.yaml | 4 + drivers/power/reset/gpio-poweroff.c | 82 ++++++++++--------- 2 files changed, 48 insertions(+), 38 deletions(-)