mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 4/6] mfd: rn5t618: wait a bit after triggering restart
Date: Thu, 11 Jun 2026 13:21:13 +0200	[thread overview]
Message-ID: <20260611112115.670073-4-l.stach@pengutronix.de> (raw)
In-Reply-To: <20260611112115.670073-1-l.stach@pengutronix.de>

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@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




  parent reply	other threads:[~2026-06-11 12:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-11 11:21 [PATCH 1/6] mfd: rn5t568: rename to rn5t618 Lucas Stach
2026-06-11 11:21 ` [PATCH 2/6] mfd: rn5t618: use defined compatibles Lucas Stach
2026-06-11 11:21 ` [PATCH 3/6] mfd: rn5t618: demote probe message to debug level Lucas Stach
2026-06-11 11:21 ` Lucas Stach [this message]
2026-06-11 11:21 ` [PATCH 5/6] watchdog: RN568: rename to rn5t618 Lucas Stach
2026-06-11 11:21 ` [PATCH 6/6] rn5t618: mfd/watchdog: switch to mfd device population Lucas Stach
2026-06-15  7:50 ` [PATCH 1/6] mfd: rn5t568: rename to rn5t618 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=20260611112115.670073-4-l.stach@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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