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]
Date:	Fri, 18 Oct 2013 15:27:46 +0300
From:	Peter De Schrijver <pdeschrijver@...dia.com>
To:	Andrew Bresticker <abrestic@...omium.org>
CC:	Prashant Gaikwad <pgaikwad@...dia.com>,
	Mike Turquette <mturquette@...aro.org>,
	Stephen Warren <swarren@...dotorg.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Thierry Reding <thierry.reding@...il.com>,
	"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>,
	"linux-arm-kernel@...ts.infradead.org" 
	<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v4 06/15] clk: tegra: move fields to
 tegra_clk_pll_params

On Fri, Oct 18, 2013 at 12:59:30AM +0200, Andrew Bresticker wrote:
> Hi Peter,
> 
> > @@ -1682,17 +1664,15 @@ struct clk *tegra_clk_register_pllc(const char *name, const char *parent_name,
> >  struct clk *tegra_clk_register_plle_tegra114(const char *name,
> >                                 const char *parent_name,
> >                                 void __iomem *clk_base, unsigned long flags,
> > -                               unsigned long fixed_rate,
> >                                 struct tegra_clk_pll_params *pll_params,
> > -                               struct tegra_clk_pll_freq_table *freq_table,
> >                                 spinlock_t *lock)
> >  {
> >         struct tegra_clk_pll *pll;
> >         struct clk *clk;
> >         u32 val, val_aux;
> >
> > -       pll = _tegra_init_pll(clk_base, NULL, fixed_rate, pll_params,
> > -                             TEGRA_PLL_HAS_LOCK_ENABLE, freq_table, lock);
> > +       pll_params->flags = TEGRA_PLL_HAS_LOCK_ENABLE;
> 
> Why are we just overwriting the flags?  We pass in flags here:
> 
> > @@ -661,6 +685,9 @@ static struct tegra_clk_pll_params pll_e_params = {
> >         .lock_enable_bit_idx = PLLE_MISC_LOCK_ENABLE,
> >         .lock_delay = 300,
> >         .div_nmp = &plle_nmp,
> > +       .freq_table = pll_e_freq_table,
> > +       .flags = TEGRA_PLL_FIXED,
> 
> TEGRA_PLL_FIXED doesn't actually make a difference in the
> plle_tegra114 case, but it would be nice to be correct about setting
> it.

Yeah indeed.

Cheers,

Peter.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ