On Mon, Jun 03, 2019 at 07:36:01PM +0900, Yoshihiro Shimoda wrote:
> According to the hardware manual of R-Car Gen2 and Gen3,
> software should wait a few RLCK cycles as following:
>  - Delay 2 cycles before setting watchdog counter.
>  - Delay 3 cycles before disabling module clock.
> 
> So, this patch adds such delays.
> 
> Signed-off-by: Yoshihiro Shimoda <[email protected]>
> Reviewed-by: Geert Uytterhoeven <[email protected]>

Despite minor nits:

Reviewed-by: Wolfram Sang <[email protected]>

> +static void rwdt_wait(struct rwdt_priv *priv, unsigned int cycles)

I'd think 'rwdt_wait_cycles' would be a more precise name for this
function.

> +     unsigned long delays;

Why not just 'delay'?

> +     /* Delay 3 cycles before disabling module clock */

I like the comments explaining why it is needed.

Attachment: signature.asc
Description: PGP signature

Reply via email to