2014-02-14 18:30:06

by Alex Elder

[permalink] [raw]
Subject: [PATCH v2 2/3] clk: bcm281xx: don't disable unused peripheral clocks

Add the CLK_IGNORE_UNUSED flag when setting up a peripheral clock.
This prevents unused clocks from getting disabled, and by doing
this we can use the common clock code even before we've resolved
all the spots that need to get a reference to their clock.

Signed-off-by: Alex Elder <[email protected]>
Reviewed-by: Matt Porter <[email protected]>
---
drivers/clk/bcm/clk-kona-setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/bcm/clk-kona-setup.c b/drivers/clk/bcm/clk-kona-setup.c
index f1e88fe..c7607fe 100644
--- a/drivers/clk/bcm/clk-kona-setup.c
+++ b/drivers/clk/bcm/clk-kona-setup.c
@@ -579,7 +579,7 @@ static int peri_clk_setup(struct ccu_data *ccu, struct peri_clk_data *data,
struct clk_init_data *init_data)
{
init_data->ops = &kona_peri_clk_ops;
- init_data->flags = 0;
+ init_data->flags = CLK_IGNORE_UNUSED;

return clk_sel_setup(data->clocks, &data->sel, init_data);
}
--
1.7.9.5


2014-02-20 20:56:24

by Matt Porter

[permalink] [raw]
Subject: Re: [PATCH v2 2/3] clk: bcm281xx: don't disable unused peripheral clocks

On Fri, Feb 14, 2014 at 12:29:19PM -0600, Alex Elder wrote:
> Add the CLK_IGNORE_UNUSED flag when setting up a peripheral clock.
> This prevents unused clocks from getting disabled, and by doing
> this we can use the common clock code even before we've resolved
> all the spots that need to get a reference to their clock.
>
> Signed-off-by: Alex Elder <[email protected]>
> Reviewed-by: Matt Porter <[email protected]>

Mike: if you'll provide your ack on this patch, we would like to take
the entire series through arm-soc for 3.15 as we originally agreed
for 3.14. Patches 1 and 3 are the original two you acked for 3.14
but had to be dropped late in the merge window.

Thanks,
Matt

> ---
> drivers/clk/bcm/clk-kona-setup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/bcm/clk-kona-setup.c b/drivers/clk/bcm/clk-kona-setup.c
> index f1e88fe..c7607fe 100644
> --- a/drivers/clk/bcm/clk-kona-setup.c
> +++ b/drivers/clk/bcm/clk-kona-setup.c
> @@ -579,7 +579,7 @@ static int peri_clk_setup(struct ccu_data *ccu, struct peri_clk_data *data,
> struct clk_init_data *init_data)
> {
> init_data->ops = &kona_peri_clk_ops;
> - init_data->flags = 0;
> + init_data->flags = CLK_IGNORE_UNUSED;
>
> return clk_sel_setup(data->clocks, &data->sel, init_data);
> }
> --
> 1.7.9.5
>

2014-02-24 01:13:42

by Mike Turquette

[permalink] [raw]
Subject: Re: [PATCH v2 2/3] clk: bcm281xx: don't disable unused peripheral clocks

Quoting Matt Porter (2014-02-20 12:56:15)
> On Fri, Feb 14, 2014 at 12:29:19PM -0600, Alex Elder wrote:
> > Add the CLK_IGNORE_UNUSED flag when setting up a peripheral clock.
> > This prevents unused clocks from getting disabled, and by doing
> > this we can use the common clock code even before we've resolved
> > all the spots that need to get a reference to their clock.
> >
> > Signed-off-by: Alex Elder <[email protected]>
> > Reviewed-by: Matt Porter <[email protected]>
>
> Mike: if you'll provide your ack on this patch, we would like to take
> the entire series through arm-soc for 3.15 as we originally agreed
> for 3.14. Patches 1 and 3 are the original two you acked for 3.14
> but had to be dropped late in the merge window.

Acked-by: Mike Turquette <[email protected]>

>
> Thanks,
> Matt
>
> > ---
> > drivers/clk/bcm/clk-kona-setup.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/clk/bcm/clk-kona-setup.c b/drivers/clk/bcm/clk-kona-setup.c
> > index f1e88fe..c7607fe 100644
> > --- a/drivers/clk/bcm/clk-kona-setup.c
> > +++ b/drivers/clk/bcm/clk-kona-setup.c
> > @@ -579,7 +579,7 @@ static int peri_clk_setup(struct ccu_data *ccu, struct peri_clk_data *data,
> > struct clk_init_data *init_data)
> > {
> > init_data->ops = &kona_peri_clk_ops;
> > - init_data->flags = 0;
> > + init_data->flags = CLK_IGNORE_UNUSED;
> >
> > return clk_sel_setup(data->clocks, &data->sel, init_data);
> > }
> > --
> > 1.7.9.5
> >