Re: [PATCH v2 07/23] clk: mediatek: clk-mtk: Add dummy clock ops

From: Miles Chen
Date: Wed Dec 28 2022 - 02:24:33 EST


Hi Angelo,

> In order to migrate some (few) old clock drivers to the common
> mtk_clk_simple_probe() function, add dummy clock ops to be able
> to insert a dummy clock with ID 0 at the beginning of the list.
>

...snip...

> +/*
> + * We need the clock IDs to start from zero but to maintain devicetree
> + * backwards compatibility we can't change bindings to start from zero.
> + * Only a few platforms are affected, so we solve issues given by the
> + * commonized MTK clocks probe function(s) by adding a dummy clock at
> + * the beginning where needed.
> + */
> +#define CLK_DUMMY 0
>

Reviewed-by: Miles Chen <miles.chen@xxxxxxxxxxxx>


--
2.39.0