[PATCH v7 1/5] clk: bcm: rpi: Manage clock rate in prepare/unprepare callbacks

Maíra Canal mcanal at igalia.com
Tue Mar 24 04:09:22 PDT 2026


Hi Stephen,

On 23/03/26 21:23, Stephen Boyd wrote:
> Quoting Maíra Canal (2026-03-12 14:34:23)
>> On current firmware versions, RPI_FIRMWARE_SET_CLOCK_STATE doesn't
>> actually power off the clock. To achieve meaningful power savings, the
>> clock rate must be set to the minimum before disabling. This might be
>> fixed in future firmware releases.
>>
>> Rather than pushing rate management to clock consumers, handle it
>> directly in the clock framework's prepare/unprepare callbacks. In
>> unprepare, set the rate to the minimum before disabling the clock.
>> In prepare, for clocks marked with `maximize` (currently v3d),
>> restore the rate to the maximum after enabling.
>>
>> Signed-off-by: Maíra Canal <mcanal at igalia.com>
>> ---
> 
> Acked-by: Stephen Boyd <sboyd at kernel.org>

When possible, could you apply this patch to clk-next? Thank you and
Maxime for the reviews!

Best regards,
- Maíra



More information about the linux-arm-kernel mailing list