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

Miles Chen
2022-12-28T07:24:29Z

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@mediatek.com>

--
2.39.0