From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jonas Rebmann <jre@pengutronix.de>
Cc: BAREBOX <barebox@lists.infradead.org>
Subject: Re: [PATCH 1/2] mfd: pca9450: configure pmic reset behavior
Date: Wed, 12 Mar 2025 13:38:56 +0100 [thread overview]
Message-ID: <Z9GAYICcORX5RQgU@pengutronix.de> (raw)
In-Reply-To: <20250311-pca9450-wdog-v1-1-45120abeae00@pengutronix.de>
On Tue, Mar 11, 2025 at 11:50:17AM +0100, Jonas Rebmann wrote:
> Currently, boards using the pca9450 pmic driver initialize the
> RESET_CTRL register either in lowlevel.c or board.c explicitly to 0xA1
> to enable the watchdog for Cold Reset with all voltage regulators
> recycled except LDO1/ LDO2 in addition to the default configuration of
> 0x11 where the WDOG_B watchdog input is disabled.
>
> Instead, enable the watchdog in the driver for Cold Reset with all
> voltage regulators recycled except LDO1/ LDO2. When
> nxp,wdog_b-warm-reset is set, the watchdog is instead enabled for Warm
> Reset.
>
> This is identical to U-Boot's behaviour since commit 910c7a881f5 and
> Linux's since commit 2364a64d0673f.
Please add the commit description like
910c7a881f5 ("pmic: pca9450: Make warm reset on WDOG_B assertion") and
2364a64d0673f ("regulator: pca9450: Make warm reset on WDOG_B assertion")
>
> Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
> ---
> drivers/mfd/pca9450.c | 11 +++++++++++
> include/mfd/pca9450.h | 4 ++++
> 2 files changed, 15 insertions(+)
>
> diff --git a/drivers/mfd/pca9450.c b/drivers/mfd/pca9450.c
> index 2511e662c3dfb5dfedbc461357ffa82d1812166f..6d6fb32c36569689b901455b3376c92977eabc37 100644
> --- a/drivers/mfd/pca9450.c
> +++ b/drivers/mfd/pca9450.c
> @@ -3,6 +3,7 @@
> * Copyright (C) 2023 Holger Assmann, Pengutronix
> */
>
> +#include "linux/regmap.h"
Please include files from the include paths with <> rather than "".
In this case you can drop it entirely, because linux/regmap.h is already
included by regmap.h
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2025-03-12 13:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 10:50 [PATCH 0/2] Move pca9450 RESET_CTRL configuration to driver Jonas Rebmann
2025-03-11 10:50 ` [PATCH 1/2] mfd: pca9450: configure pmic reset behavior Jonas Rebmann
2025-03-12 12:38 ` Sascha Hauer [this message]
2025-03-11 10:50 ` [PATCH 2/2] ARM: boards: remove obsolete PCA9450_RESET_CTRL setup Jonas Rebmann
2025-03-11 11:03 ` Ahmad Fatoum
2025-03-11 11:21 ` Jonas Rebmann
2025-03-11 11:42 ` Ahmad Fatoum
2025-03-12 12:43 ` Sascha Hauer
2025-03-11 11:05 ` [PATCH 0/2] Move pca9450 RESET_CTRL configuration to driver Rouven Czerwinski
2025-03-11 11:40 ` Jonas Rebmann
2025-03-11 11:42 ` Jonas Rebmann
2025-03-12 12:31 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z9GAYICcORX5RQgU@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jre@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox