Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753528AbaA3Oc4 (ORCPT ); Thu, 30 Jan 2014 09:32:56 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:33198 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752636AbaA3Ocz (ORCPT ); Thu, 30 Jan 2014 09:32:55 -0500 Message-ID: <52EA627E.8060801@ti.com> Date: Thu, 30 Jan 2014 09:32:30 -0500 From: Santosh Shilimkar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Ivan Khoronzhuk CC: "mturquette@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] clk: keystone: gate: fix clk_init_data initialization References: <1391081821-13306-1-git-send-email-ivan.khoronzhuk@ti.com> <448912EABC71F84BBCADFD3C67C4BE52A0B4EB@DBDE04.ent.ti.com> <52EA5866.3090706@ti.com> In-Reply-To: <52EA5866.3090706@ti.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 30 January 2014 08:49 AM, Ivan Khoronzhuk wrote: > Yes. As result the clk->flag field contains garbage. In my case it leads > that flag CLK_IGNORE_UNUSED is set for most of clocks. As result a bunch > of unused clocks cannot be disabled. > Can you please update the change log with above information. > On 01/30/2014 03:26 PM, Shilimkar, Santosh wrote: >> Can u capture the issue withiout this fix? >> >> Sent from my Android phone using TouchDown (www.nitrodesk.com) >> >> -----Original Message----- >> *From:* Khoronzhuk, Ivan [ivan.khoronzhuk@ti.com] >> *Received:* Thursday, 30 Jan 2014, 6:37am >> *To:* Shilimkar, Santosh [santosh.shilimkar@ti.com] >> *CC:* mturquette@linaro.org [mturquette@linaro.org]; >> linux-arm-kernel@lists.infradead.org [linux-arm-kernel@lists.infradead.org]; >> linux-kernel@vger.kernel.org [linux-kernel@vger.kernel.org]; Khoronzhuk, Ivan >> [ivan.khoronzhuk@ti.com] >> *Subject:* [PATCH] clk: keystone: gate: fix clk_init_data initialization >> >> In clk_register_psc() function clk_init_data struct is allocated >> in the stack. All members of this struct should be initialized >> before using otherwise it will contain garbage. So initialize flags >> in this structure too. >> >> Signed-off-by: Ivan Khoronzhuk >> --- >> drivers/clk/keystone/gate.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/clk/keystone/gate.c b/drivers/clk/keystone/gate.c >> index 17a5983..86f1e36 100644 >> --- a/drivers/clk/keystone/gate.c >> +++ b/drivers/clk/keystone/gate.c >> @@ -179,6 +179,7 @@ static struct clk *clk_register_psc(struct device *dev, >> >> init.name = name; >> init.ops = &clk_psc_ops; >> + init.flags = 0; >> init.parent_names = (parent_name ? &parent_name : NULL); >> init.num_parents = (parent_name ? 1 : 0); >> >> -- >> 1.8.3.2 >> > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/