lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200107070007.6D92F206DB@mail.kernel.org>
Date:   Mon, 06 Jan 2020 23:00:06 -0800
From:   Stephen Boyd <sboyd@...nel.org>
To:     Dinh Nguyen <dinguyen@...nel.org>, linux-clk@...r.kernel.org
Cc:     devicetree@...r.kernel.org, mturquette@...libre.com,
        robh+dt@...nel.org, mark.rutland@....com,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] clk: socfpga: agilex: add clock driver for the Agilex platform

Quoting Dinh Nguyen (2019-12-03 07:15:21)
> Hi Stephen,
> 
> On 9/18/19 12:00 AM, Stephen Boyd wrote:
> > Quoting Dinh Nguyen (2019-09-17 18:34:59)
> >> diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
> >> index 0cad76021297..ef2c96c0f1e0 100644
> >> --- a/drivers/clk/Makefile
> >> +++ b/drivers/clk/Makefile
> >> @@ -18,6 +18,7 @@ endif
> >>  
> 
> <snip>
> 
> >> +struct clk *agilex_register_pll(const char *name,
> >> +                               const char * const *parent_names,
> >> +                               u8 num_parents, unsigned long flags,
> >> +                               void __iomem *reg, unsigned long offset)
> >> +{
> >> +       struct clk *clk;
> >> +       struct socfpga_pll *pll_clk;
> >> +       struct clk_init_data init;
> >> +
> >> +       pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL);
> >> +       if (WARN_ON(!pll_clk))
> >> +               return NULL;
> >> +
> >> +       pll_clk->hw.reg = reg + offset;
> >> +
> >> +       if (streq(name, SOCFPGA_BOOT_CLK))
> >> +               init.ops = &clk_boot_ops;
> >> +       else
> >> +               init.ops = &agilex_clk_pll_ops;
> >> +
> >> +       init.name = name;
> >> +       init.flags = flags;
> >> +
> >> +       init.num_parents = num_parents;
> >> +       init.parent_names = parent_names;
> > 
> > Is it possible to use the new way of specifying clk parents here so that
> > we don't have to keep using strings to describe the clk topology?
> > 
> 
> Can you point me to what you mean here? Perhaps a driver that is using
> this new way of specifying clk parents?
> 

I'm supposed to write some documentation, but you can look for drivers
that have 'struct clk_parent_data' until I write the doc up.

 $ git grep 'struct clk_parent_data' -- drivers/clk/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ