diff mbox series

[3/6] soc/tegra: pmc: Specify restart mode

Message ID 20230727-pca9450-reboot-v1-3-c8edb27bf404@skidata.com (mailing list archive)
State New, archived
Headers show
Series regulator: pca9450: register restart handlers | expand

Commit Message

Benjamin Bara July 27, 2023, 3:26 p.m. UTC
From: Benjamin Bara <benjamin.bara@skidata.com>

Specify the implemented restart handler as a warm one.

Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
---
 drivers/soc/tegra/pmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thierry Reding July 27, 2023, 4:53 p.m. UTC | #1
On Thu, Jul 27, 2023 at 05:26:38PM +0200, Benjamin Bara wrote:
> From: Benjamin Bara <benjamin.bara@skidata.com>
> 
> Specify the implemented restart handler as a warm one.
> 
> Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
> ---
>  drivers/soc/tegra/pmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Thierry Reding <treding@nvidia.com>
diff mbox series

Patch

diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c
index 162f52456f65..4f42febb9b0f 100644
--- a/drivers/soc/tegra/pmc.c
+++ b/drivers/soc/tegra/pmc.c
@@ -2962,7 +2962,7 @@  static int tegra_pmc_probe(struct platform_device *pdev)
 	}
 
 	err = devm_register_sys_off_handler(&pdev->dev,
-					    SYS_OFF_MODE_RESTART,
+					    SYS_OFF_MODE_RESTART_WARM,
 					    SYS_OFF_PRIO_LOW,
 					    tegra_pmc_restart_handler, NULL);
 	if (err) {