Re: [PATCH v3] mfd: rk808: Add restart functionality

From: Wadim Egorov
Date: Fri Mar 16 2018 - 07:56:03 EST


Hi Daniel,

Am 16.03.2018 um 09:26 schrieb Daniel Schultz:
> When using Rockchip SoCs with rk805/808/818 PMICs, restarts are realized by
> setting the reset registers in the "Clock and Reset Unit".
>
> Since all three shutdown functions have almost the same code, all logic
> from the shutdown functions can be refactored to a new function
> "rk808_update_bits", which can update a register by a given address and
> bitmask.
>
> After that, notifier blocks and the restart functions were added to the
> driver. Like the shutdown function, the restart is bound to the
> "rockchip,system-power-controller" device tree property and can easily
> revoked to the software restart by removing the property.
can you please split the changes into separate patches? One patch for
the refactoring of the shutdown functions and one for the new
system-reset-controller binding.

Regards,
Wadim