Re: [PATCH v3 2/3] clk: renesas: r9a06g032: Add reset controller
From: Kyle Hendry
Date: Wed Nov 25 2026 - 14:50:25 EST
On 25-Nov-26 12:04, Wolfram Sang wrote:
+static int r9a06g032_reset_set(struct reset_controller_dev *rcdev,
+ bool set, unsigned long id)
+{
+ struct r9a06g032_priv *priv = priv_from_rcdev(rcdev);
+ unsigned long flags;
+
+ spin_lock_irqsave(&priv->lock, flags);
+ clk_rdesc_set(priv, r9a06g032_resets[id], set);
+ spin_unlock_irqrestore(&priv->lock, flags);
I checked the docs again. (Do you have them? You can find the relevant
part here[1]). Figure 7.3 and 7.4 mention a reset propagation time of
5us. So, it is not describing a pulse of 5us. But every access to the
RSTN register needs this delay for propagation. So, despite the U-Boot
code not having the delay, I think we should add a 'udelay(5)' here
after the unlock. What do you think?
Agreed. I'll apply the delay to these resets.
Regards,
Kyle