lkml.org 
[lkml]   [2018]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v4 2/7] clk: at91: add I2S clock mux driver
Date
Quoting Codrin Ciubotariu (2018-06-04 01:20:29)
> On 31.05.2018 18:26, Stephen Boyd wrote:
> > Quoting Codrin Ciubotariu (2018-05-25 05:34:23)
> >
> >> + .get_parent = clk_i2s_mux_get_parent,
> >> + .set_parent = clk_i2s_mux_set_parent,
> >> + .determine_rate = __clk_mux_determine_rate,
> >> +};
> >> +
> >> +static struct clk_hw * __init
> >> +at91_clk_i2s_mux_register(struct regmap *regmap, const char *name,
> >> + const char * const *parent_names,
> >> + unsigned int num_parents, u32 bus_id)
> >> +{
> >> + struct clk_init_data init = {};
> >> + struct clk_i2s_mux *i2s_ck;
> >> + int ret;
> >> +
> >> + i2s_ck = kzalloc(sizeof(*i2s_ck), GFP_KERNEL);
> >> + if (!i2s_ck)
> >> + return ERR_PTR(-ENOMEM);
> >> +
> >> + init.name = name;
> >> + init.ops = &clk_i2s_mux_ops;
> >> + init.parent_names = parent_names;
> >> + init.num_parents = num_parents;
> >> + init.flags = CLK_IGNORE_UNUSED;
> >
> > Really? Why?
>
> I am thinking that there is no need to gate this clock, since there is
> no way to gate this clock in HW.

This flag is not necessary if the clk can't be gated via hardware
control registers. Please remove the flag.

\
 
 \ /
  Last update: 2018-06-12 18:35    [W:0.090 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site