Re: [PATCH v3 03/12] clk: qcom: clk-regmap-divider: Support CLK_DIVIDER_* flags

From: Abel Vesa

Date: Thu Sep 03 2026 - 09:29:48 EST


On 26-08-14 05:48:13, Luo Jie wrote:
> Add a flags field to struct clk_regmap_div and OR it into the
> CLK_DIVIDER_ROUND_CLOSEST flag passed to divider_determine_rate(),
> divider_ro_determine_rate(), divider_get_val(), and
> divider_recalc_rate(), so that qcom drivers can opt into
> CLK_DIVIDER_* behavior variants such as CLK_DIVIDER_ONE_BASED.
>
> This is additive and backward compatible: existing clk_regmap_div
> users don't initialize .flags, so it defaults to 0, and
> CLK_DIVIDER_ROUND_CLOSEST | 0 is identical to current behavior.
>
> Signed-off-by: Luo Jie <jie.luo@xxxxxxxxxxxxxxxx>

Reviewed-by: Abel Vesa <abel.vesa@xxxxxxxxxxxxxxxx>