[U-Boot] [PATCH v2 07/22] clock-uclass: allow disabling a peripheral clock

Stephen Warren swarren at wwwdotorg.org
Tue Jul 12 18:08:05 CEST 2016


On 07/12/2016 10:02 AM, Simon Glass wrote:
> +Stephen
>
> Hi Benjamin,
>
> On 20 June 2016 at 12:26, Benjamin Tietz <uboot at dresden.micronet24.de> wrote:
>> From: Benjamin Tietz <benjamin at micronet24.de>
>>
>> Currently, clocks can be enabled, only. To be feature-complete - and allow
>> a bit of power-saving in applications - disabling a clock should be
>> possible, too.
>>
>> This extend the API of the DM clock driver to allow a clock to be disabled.
>>
>> The corresponding operation is optional for not breaking existing drivers.
>
> What does this mean? I can't see how it is optional.
>
> Also please can you rebase to mainline and resend, as the API has
> changed (sorry).

include/clk.h already contains a clk_disable() function. I suspect you 
can just go ahead and implement it and ignore this patch?


More information about the U-Boot mailing list