lkml.org 
[lkml]   [2020]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 4/5] clk: qcom: clk-alpha-pll: Add support for Lucid 5LPE PLL
From
Date
Quoting Vinod Koul (2020-12-10 21:02:57)
> On 10-12-20, 12:36, Stephen Boyd wrote:
> > > +
> > > + return regmap_update_bits(pll->clkr.regmap, PLL_USER_CTL(pll),
> > > + (BIT(pll->width) - 1) << pll->post_div_shift,
> >
> > Use GENMASK?
>
> Looks like this can be:
> GENMASK(pll->width + pll->post_div_shift - 1, pll->post_div_shift)
>
> Not sure which one you like :)

Preferably a local u32 mask = GENMASK(...)

\
 
 \ /
  Last update: 2020-12-11 08:12    [W:0.048 / U:24.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site