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 <[email protected]> --- 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
