[PATCH 3/9] drm/meson: dw-hdmi: use generic clock helpers

Jerome Brunet jbrunet at baylibre.com
Wed Aug 7 00:59:13 PDT 2024


On Tue 06 Aug 2024 at 22:28, Martin Blumenstingl <martin.blumenstingl at googlemail.com> wrote:

> On Tue, Jul 30, 2024 at 2:50 PM Jerome Brunet <jbrunet at baylibre.com> wrote:
>>
>> The Amlogic HDMI phy driver is not doing anything with the clocks
>> besides enabling on probe. CCF provides generic helpers to do that.
>>
>> Use the generic clock helpers rather than using a custom one to get and
>> enable clocks.
>>
>> Signed-off-by: Jerome Brunet <jbrunet at baylibre.com>
> Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
>
> note to self: even if we need to manage one of the clocks specifically
> we can do it with clk_bulk_data

Honestly I've gone for bulk variant only because calling
devm_clk_get_enabled() 3 times in row and do nothing with the clocks
looks odd.

In I had to do something specific with a clock later on, personnaly I
would back to plain 'struct clk' and use devm_clk_get_enabled()

-- 
Jerome



More information about the linux-amlogic mailing list