Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751659AbdFIJzm (ORCPT ); Fri, 9 Jun 2017 05:55:42 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:36699 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbdFIJzk (ORCPT ); Fri, 9 Jun 2017 05:55:40 -0400 Subject: Re: [PATCH] clk: meson: gxbb: add all clk81 parents To: Jerome Brunet References: <20170608135545.31499-1-jbrunet@baylibre.com> Cc: Stephen Boyd , Michael Turquette , Kevin Hilman , Carlo Caione , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org From: Neil Armstrong Organization: Baylibre Message-ID: <0fde1897-966f-45b0-91ef-0f8f0df62c5b@baylibre.com> Date: Fri, 9 Jun 2017 11:55:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170608135545.31499-1-jbrunet@baylibre.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1615 Lines: 47 On 06/08/2017 03:55 PM, Jerome Brunet wrote: > Remove the FIXME on clk81 mux and add all the documented parents > > Signed-off-by: Jerome Brunet > --- > drivers/clk/meson/gxbb.c | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c > index 36c0e455437e..a897ea45327c 100644 > --- a/drivers/clk/meson/gxbb.c > +++ b/drivers/clk/meson/gxbb.c > @@ -603,7 +603,11 @@ static struct meson_clk_mpll gxbb_mpll2 = { > * coordinated clock rates feature > */ > > -static u32 mux_table_clk81[] = { 6, 5, 7 }; > +static u32 mux_table_clk81[] = { 0, 2, 3, 4, 5, 6, 7 }; > +static const char * const clk81_parent_names[] = { > + "xtal", "fclk_div7", "mpll1", "mpll2", "fclk_div4", > + "fclk_div3", "fclk_div5" > +}; > > static struct clk_mux gxbb_mpeg_clk_sel = { > .reg = (void *)HHI_MPEG_CLK_CNTL, > @@ -616,13 +620,12 @@ static struct clk_mux gxbb_mpeg_clk_sel = { > .name = "mpeg_clk_sel", > .ops = &clk_mux_ro_ops, > /* > - * FIXME bits 14:12 selects from 8 possible parents: > + * bits 14:12 selects from 8 possible parents: > * xtal, 1'b0 (wtf), fclk_div7, mpll_clkout1, mpll_clkout2, > * fclk_div4, fclk_div3, fclk_div5 > */ > - .parent_names = (const char *[]){ "fclk_div3", "fclk_div4", > - "fclk_div5" }, > - .num_parents = 3, > + .parent_names = clk81_parent_names, > + .num_parents = ARRAY_SIZE(clk81_parent_names), > .flags = (CLK_SET_RATE_NO_REPARENT | CLK_IGNORE_UNUSED), > }, > }; > Should not harm. Acked-by: Neil Armstrong