Re: [PATCH v2 1/2] soc/tegra: pmc: Query PCLK clock rate at probe time

From: Dmitry Osipenko
Date: Thu Jul 25 2019 - 14:05:36 EST


25.07.2019 12:36, Peter De Schrijver ÐÐÑÐÑ:
> On Tue, Jul 23, 2019 at 05:35:10AM +0300, Dmitry Osipenko wrote:
>> The PCLK clock is running off SCLK, which is a critical clock that is
>> very unlikely to randomly change its rate. It's also a bit clumsy (and
>> apparently incorrect) to query the clock's rate with interrupts being
>> disabled because clk_get_rate() takes a mutex and that's the case during
>> suspend/cpuidle entering.
>>
>
> SCLK and PCLK certainly can change rate at runtime, although the code to
> handle this hasn't reached upstream yet.

Okay, maybe this patch is indeed not very worthwhile then. I'm leaving
it up to you, guys, to decide.