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

Miles Chen miles.chen at mediatek.com
Tue Dec 27 23:24:14 PST 2022


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


-- 
2.39.0





More information about the Linux-mediatek mailing list