Re: [PATCH] clk: samsung: Use clk_hw API for calling clk framework from clk notifiers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Stephen,

On 2018-10-08 04:47, Stephen Boyd wrote:
> Quoting Marek Szyprowski (2018-10-02 04:52:10)
>> @@ -432,7 +432,7 @@ int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx,
>>         else
>>                 cpuclk->clk_nb.notifier_call = exynos_cpuclk_notifier_cb;
>>  
>> -       cpuclk->alt_parent = __clk_lookup(alt_parent);
>> +       cpuclk->alt_parent = __clk_get_hw(__clk_lookup(alt_parent));
> It would be nice to get rid of __clk_lookup() from here too. Please try
> to do that if at all possible.

So far it won't be possible to get rid of __clk_lookup() completely from
samsung/clk-cpu.c, because there is a need to register clk notifier for
CPU clock, but there is no clk_hw_notifier_register() api. I'm not sure if
this is the right way to add it.

> ...

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland




[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux