Re: [PATCH v1] clk: Add enable-state column to clk summary

From: Dmitry Osipenko
Date: Fri Nov 13 2020 - 04:04:36 EST


13.11.2020 11:18, Stephen Boyd пишет:
> Quoting Dmitry Osipenko (2020-11-04 08:56:31)
>> Add "enable state" column to the clk summary. It's handy to know actual
>> hardware state of all clocks for debugging purposes. In conjunction with
>> clk_ignore_unused, this tells us what unused clocks are left on after
>> bootloader without disabling the clocks.
>
> Should it be called "boot state" then? That idea sounds OK to me.
>
>> It's also s useful debugging
>
> Stray 's' here.
>
>> information for cases where firmware touches clocks.
>
> Care to explain more? Presumably you mean when firmware is modifying clk
> state without notifying the kernel?

This is exactly what I meant.

> In which case it should be called
> "hardware enable" or something like that and be a "Y/N/?" value
> depending on if the value can be read or not and if it is enabled or not?

Indeed, I like the "hardware enable", thank you for the suggestion. The
"Y/N/?" suggestion is also good.

I'll prepare v2, thank you for the review!