Re: [PATCH] clk: at91: fix possible deadlock

From: Michał Mirosław
Date: Thu Nov 28 2019 - 08:58:29 EST


On Thu, Nov 28, 2019 at 11:25:31AM +0100, Alexandre Belloni wrote:
> Lockdep warns about a possible circular locking dependency because using
> syscon_node_to_regmap() will make the created regmap get and enable the
> first clock it can parse from the device tree. This clock is not needed to
> access the registers and should not be enabled at that time.
>
> Use the recently introduced device_node_to_regmap to solve that as it looks
> up the regmap in the same list but doesn't care about the clocks.
>
> Reported-by: Michał Mirosław <mirq-linux@xxxxxxxxxxxx>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
[...]

Tested-by: Michał Mirosław <mirq-linux@xxxxxxxxxxxx>

Thanks! Can you push this to stable?

Best Regards,
Michał Mirosław