[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOMZO5DOPgLz3UMvVbJh33AuQfbs0G7XTCvTnVePHrpSyXiHiQ@mail.gmail.com>
Date: Mon, 15 Sep 2014 12:09:10 -0300
From: Fabio Estevam <festevam@...il.com>
To: Shawn Guo <shawn.guo@...escale.com>
Cc: Shengjiu Wang <shengjiu.wang@...escale.com>,
Sascha Hauer <kernel@...gutronix.de>,
Russell King <linux@....linux.org.uk>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH V1 1/3] ARM: clk-imx6sl: refine clock tree for SSI
On Mon, Sep 15, 2014 at 11:48 AM, Shawn Guo <shawn.guo@...escale.com> wrote:
> Shengjiu,
>
> Your analysis is right. I hope the following change will get the shared
> gate clock code eventually does the right thing.
>
> Shawn
>
> diff --git a/arch/arm/mach-imx/clk-gate2.c b/arch/arm/mach-imx/clk-gate2.c
> index 84acdfd1d715..89abdf738dc9 100644
> --- a/arch/arm/mach-imx/clk-gate2.c
> +++ b/arch/arm/mach-imx/clk-gate2.c
> @@ -97,7 +97,7 @@ static int clk_gate2_is_enabled(struct clk_hw *hw)
> struct clk_gate2 *gate = to_clk_gate2(hw);
>
> if (gate->share_count)
> - return !!(*gate->share_count);
> + return !!__clk_get_enable_count(hw->clk);
> else
> return clk_gate2_reg_is_enabled(gate->reg, gate->bit_idx);
This fixes the audio playback, thanks. Tested on a mx6qsabresd and
also on mx6sx sdb:
Tested-by: Fabio Estevam <fabio.estevam@...escale.com>
--
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