RE: [PATCH] clk: bulk: export of_clk_bulk_get_all

From: Peng Fan
Date: Wed Jan 05 2022 - 21:19:45 EST


> Subject: Re: [PATCH] clk: bulk: export of_clk_bulk_get_all
>
> Quoting Peng Fan (OSS) (2021-12-20 19:16:38)
> > From: Peng Fan <peng.fan@xxxxxxx>
> >
> > There are cases that need to get the bulk clks of a device_node which
> > not has device created, so export of_clk_bulk_get_all to let consumers
> > could use it.
> >
> > Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
> > ---
> >
> > V1:
> > An example here, mediamix node has clocks property, but it will
> > not
>
> Sorry I don't get the example. What does a DT snippet have to do with
> modular kernel code? What specific kernel module is calling this API?
>
> > have device of it, so we need of_X api to get the clks.
> > src: src@0x30390000 {
> > compatible = "fsl,imx[X]-src";
> > reg = <0x30390000 0x10000>;
> >
> > slice {
>
> Is this upstream?

Not posted to community yet. I'll post that patch to show the usage.

Thanks,
Peng.

>
> > #address-cells = <1>;
> > #size-cells = <0>;
> >
> > mediamix: slice@2400 {
> > reg = <IMX93_POWER_DOMAIN_MEDIAMIX>;
> > #power-domain-cells = <0>;