Re: [PATCH v1] power: reset: tdx-ec-poweroff: fix restart
From: Francesco Dolcini
Date: Fri Jan 30 2026 - 03:11:18 EST
On Fri, Jan 30, 2026 at 08:11:35AM +0100, Emanuele Ghidoli wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli@xxxxxxxxxxx>
>
> During testing, restart occasionally failed on Toradex modules.
>
> The issue was traced to an interaction between the EC-based reset/poweroff
> handler and the PSCI restart handler. While the embedded controller is
> resetting or powering off the module, the PSCI code may still be invoked,
> triggering an I2C transaction to the PMIC. This can leave the PMIC I2C
> in a frozen state.
>
> Add a delay after issuing the EC reset or power-off command to give the
> controller time to complete the operation and avoid falling back to another
> restart/poweroff provider.
>
> Also print an error message if sending the command to the embedded controller
> fails.
>
> Fixes: 18672fe12367 ("power: reset: add Toradex Embedded Controller")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@xxxxxxxxxxx>
Reviewed-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>