[PATCH 4/6] mfd: rn5t618: wait a bit after triggering restart

Lucas Stach l.stach at pengutronix.de
Thu Jun 11 04:21:13 PDT 2026


The shutdown sequence performed by the PMIC after the
restart is triggered isn't instantaneous. Wait a bit
to allow the PMIC to act on our request.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 drivers/mfd/rn5t618.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c
index d0c8824489a1..d757802b5363 100644
--- a/drivers/mfd/rn5t618.c
+++ b/drivers/mfd/rn5t618.c
@@ -29,6 +29,8 @@ static void rn5t618_restart(struct restart_handler *rst,
 	struct rn5t618 *rn5t618 = container_of(rst, struct rn5t618, restart);
 
 	regmap_write(rn5t618->regmap, RN5T618_SLPCNT, RN5T618_SLPCNT_SWPPWROFF);
+
+	mdelay(100);
 }
 
 static int rn5t618_reset_reason_detect(struct device *dev,
-- 
2.47.3




More information about the barebox mailing list