Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp896124rwd; Thu, 8 Jun 2023 09:08:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cuKFKBgF70tE1s0acdhUBw+zUtQE3NEimOMksmZfolf5zvLfOn2aKOE9o0tOANhIQbnyK X-Received: by 2002:a05:6a00:1513:b0:64f:7c9d:9c09 with SMTP id q19-20020a056a00151300b0064f7c9d9c09mr12426450pfu.32.1686240481149; Thu, 08 Jun 2023 09:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686240481; cv=none; d=google.com; s=arc-20160816; b=yPlbQgiUJhkK6LR00lOUhW0kkwX+ts1hB+uD/dBoTI6ptTFNS49MqcwLxFUXNiMttp R0fN0M1btZmb2i3r8cZNfcJGL6Dn9DYA5gnnr8psRw0bRUoxXAbPqTQ/xe59hK0GGNKC COsKs0WolD5P5syQoFgCH9R1L0cHkzTpEyUwgmW5NZBm0FuxEXiu6kA7xyfWVJRhh2Xw PYUDJthj7z5tT9R+rTlqEbj7GNeUlesyHd4XGpEpU+YWWhqHA6iE4bW6nX3LwJYFtKi/ rpMg8bqKCVq1zc2tBLnzwgqCIqUwvOmbHyktVYkzutYm1GqvHCaDOpZ8+CCCnAycrG7A I3og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=shQgFD/qDDsFJhor7tw7qBXveYgw51EO+aAD41iTO5A=; b=m6RB2B4MfzVpqmCpfsC0My9zDmzHnDhUvDaExbAb4hCbdqbPfcrrrS2K2Y4OHN66+u qDOq3qIhSj7KZpsHJJKo0FEMM6U1qte4/4zFqXZ1KqQiLJagkJKyBnc/2Xjv6U2dg+/A julsUdyKkrnxJD9g4f3r9wL/xaJph/WVjqlmEMmsH7Zw9ACDkSRHxVBcBInsOhsz0m8j DZnqJEckUixdAXO/hl4rGjyUMJeVFvFzM8pwBwty/oi+WabPZi+KlvZ06DxUP4JVH2bI /sjaUmgGKcWYLxTS3g1hPsscFbQLmlik+1fWYiSqA4R4/XSfE42R8tr8ZaeSNuygPzBX J1vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gmTwoGlB; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a056a00088f00b0064d28796335si1060380pfj.92.2023.06.08.09.07.47; Thu, 08 Jun 2023 09:08:01 -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=@kernel.org header.s=k20201202 header.b=gmTwoGlB; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236918AbjFHP5d (ORCPT + 99 others); Thu, 8 Jun 2023 11:57:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237672AbjFHP5a (ORCPT ); Thu, 8 Jun 2023 11:57:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A36761FCC; Thu, 8 Jun 2023 08:57:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0397463188; Thu, 8 Jun 2023 15:57:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C79C0C4339B; Thu, 8 Jun 2023 15:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686239834; bh=mecH44HKv66DOIzb6Cw7QlFUnI1jG2hQESu+9Iq7z0s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gmTwoGlBOFxuW3U7WjM9jDKF6jaDGwvSfgLS2gMLB3TrsKkjoaV87riWf4s+I830C JWWtavKcosH0j49IiUnqYe2xCOD+BrZfbE+59OHmhjjbb45bQ/Cs7bA6dorYHCz5Ni +5Er/qVJ1EHaTF/lyMf8H5QUPkcKmtv6jK3KsEFhclr2iQoCbkI0J6zvGKNKKJvW/6 mWzIybnytBozw1Uoyw3Odt7lpXQC6Z7uxcXiAYrstIHLKh4kImHetejrUPJwnGB+te X0zO59VDgkgS4pRR1udZjkFnhgjRNDZg6OPc4qJ0JzKTejrstpoGwt+ArT9QDITK3v g1b0zfZj5imdA== Date: Thu, 8 Jun 2023 16:57:09 +0100 From: Lee Jones To: Jerome Neanne Cc: tony@atomide.com, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, nm@ti.com, afd@ti.com, msp@baylibre.com Subject: Re: [RESEND PATCH v3] mfd: tps65219: Add support for soft shutdown via sys-off API Message-ID: <20230608155709.GA3572061@google.com> References: <20230608071947.3467751-1-jneanne@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230608071947.3467751-1-jneanne@baylibre.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, 08 Jun 2023, Jerome Neanne wrote: > Use new API for power-off mode support: > Link: https://lwn.net/Articles/894511/ > Link: https://lore.kernel.org/all/7hfseqa7l0.fsf@baylibre.com/ > > sys-off API allows support of shutdown handler and restart handler. > > Shutdown was not supported before that enhancement. > This is required for platform that are not using PSCI. > > Test: > - restart: > # reboot > Default is cold reset: > # cat /sys/kernel/reboot/mode > Switch boot mode to warm reset: > # echo warm > /sys/kernel/reboot/mode > - power-off: > # halt > > Tested on AM62-LP-SK board. > > Signed-off-by: Jerome Neanne > Suggested-by: Andrew Davis > Reviewed-by: Andrew Davis > --- > > Notes: > Change-log v3 to v2 > v2: Link: https://lore.kernel.org/lkml/20230511122100.2225417-1-jneanne@baylibre.com/ > Lee Jones Review: > nits: rm not needed line wraps and restore a cr deleted not related with the patch. > > Change-log v2 to v1 > v1: Link: https://lore.kernel.org/all/20230203140150.13071-1-jneanne@baylibre.com/ > Andrew Davis Review: > - Use new helpers devm_register_restart_handler and devm_register_power_off_handler > Vignesh Raghavendra: > - Fix typo on board name in commit message > > drivers/mfd/tps65219.c | 38 ++++++++++++++++++++++++++++---------- > 1 file changed, 28 insertions(+), 10 deletions(-) Applied, thanks -- Lee Jones [李琼斯]