Re: [PATCH v1 2/2] cpuidle: tegra: Check whether PMC is ready
From: Dmitry Osipenko <digetx@gmail.com>
Date: 2021-08-14 13:45:49
Also in:
linux-tegra, lkml
From: Dmitry Osipenko <digetx@gmail.com>
Date: 2021-08-14 13:45:49
Also in:
linux-tegra, lkml
14.08.2021 13:37, Daniel Lezcano пишет:
On 11/08/2021 11:49, Thierry Reding wrote:quoted
On Mon, Jul 19, 2021 at 12:27:06AM +0300, Dmitry Osipenko wrote:quoted
Check whether PMC is ready before proceeding with the cpuidle registration. This fixes racing with the PMC driver probe order, which results in a disabled deepest CC6 idling state if cpuidle driver is probed before the PMC. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> --- drivers/cpuidle/cpuidle-tegra.c | 3 +++ 1 file changed, 3 insertions(+)Rafael, Daniel, would you mind if I took this into the Tegra tree? It's got a dependency on the PMC driver, which usually goes via the Tegra tree already, and there's nothing cpuidle-specific in here, it's all Tegra-specific integration quirks.Acked-by: Daniel Lezcano <redacted>
I got another thought about how it could be solved. We could move the creation of the cpuidle platform device into the PMC driver. Thierry, what do you think?