linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Zhi Li <lznuaa@gmail.com>
Cc: "Frank.Li@freescale.com" <Frank.Li@freescale.com>,
	Shawn Guo <shawn.guo@linaro.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	robh+dt@kernel.org,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	linux-gpio@vger.kernel.org,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Anson Huang <b20788@freescale.com>,
	Adrian Alonso <aalonso@freescale.com>
Subject: Re: [PATCH v4 09/11] ARM: imx: add imx7d clk tree support
Date: Tue, 21 Apr 2015 16:27:47 +0200	[thread overview]
Message-ID: <20150421142747.GD6325@pengutronix.de> (raw)
In-Reply-To: <CAHrpEqSuJbAEBDBfVMXdFk-p-xwtwfmHbSw3OsN-2sa9fNmA=A@mail.gmail.com>

On Tue, Apr 21, 2015 at 09:15:36AM -0500, Zhi Li wrote:
> On Tue, Apr 21, 2015 at 5:22 AM, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> > On Tue, Apr 21, 2015 at 05:05:31AM +0800, Frank.Li@freescale.com wrote:
> >> From: Frank Li <Frank.Li@freescale.com>
> >>
> >> Add i.MX7D clk tree support.
> >>
> >> +
> >> +     clk_register_clkdev(clks[IMX7D_GPT1_ROOT_CLK], "ipg", "imx-gpt.0");
> >> +     clk_register_clkdev(clks[IMX7D_GPT_3M_CLK], "gpt_3m", "imx-gpt.0");
> 
> This patch just list all clock root in RM.

Maybe, still the two lines above are unused. The timer code only does a
of_clk_get_by_name which will never return the clocks you register
above.

> all clock refine have to wait for Dong Aisheng's RFC clock framework
> change's patch.
> 
> >
> > What are these good for? These shouldn't be here.
> >
> >> +
> >> +     for (i = 0; i < IMX7D_END_CLK; i++)
> >> +             clk_prepare_enable(clks[i]);
> >
> > Hey, no. You enable *all* clocks here which is certainly wrong. They
> > will never be turned off.
> 
> Yes. This patches's purpose is bring up mx7.
> Because imx7 clock design change,  Dong Aisheng send out RFC patch to
> change a little bit framework.
> After that,  we can enable only necessary clock here. Otherwise system
> will halt and block the other part
> upstream.

If that's the case you should state that in the commit message, add a
comment to the code that it needs fixing once Dongs patch is in and
provide a reference to the patch you need.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  reply	other threads:[~2015-04-21 14:27 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20 21:05 [PATCH v4 00/11] Add Freescale i.mx7d support Frank.Li
2015-04-20 21:05 ` [PATCH v4 01/11] ARM: dts: add pinfunc include file to support imx7d Frank.Li
2015-04-20 21:05 ` [PATCH v4 02/11] ARM: dts: add pinfunc include file gpio1 " Frank.Li
2015-04-20 21:05 ` [PATCH v4 03/11] ARM: dts: add clock include file " Frank.Li
2015-04-20 21:05 ` [PATCH v4 04/11] Document: dt: binding: imx: update document for imx7d support Frank.Li
2015-04-21 20:40   ` Rob Herring
2015-04-20 21:05 ` [PATCH v4 05/11] ARM: dts: add imx7d soc dtsi file Frank.Li
2015-04-21 20:37   ` Rob Herring
2015-04-21 20:47     ` Zhi Li
2015-04-23 10:35       ` Fabio Estevam
2015-04-20 21:05 ` [PATCH v4 06/11] pinctrl: add imx7d support Frank.Li
2015-04-20 21:05 ` [PATCH v4 07/11] ARM: imx: add msl support for imx7d Frank.Li
2015-04-21  9:55   ` Russell King - ARM Linux
2015-04-20 21:05 ` [PATCH v4 08/11] ARM: imx: add gpt system timer " Frank.Li
2015-04-21 10:02   ` Russell King - ARM Linux
2015-04-21 14:17     ` Zhi Li
2015-04-20 21:05 ` [PATCH v4 09/11] ARM: imx: add imx7d clk tree support Frank.Li
2015-04-21 10:22   ` Sascha Hauer
2015-04-21 14:15     ` Zhi Li
2015-04-21 14:27       ` Sascha Hauer [this message]
2015-04-20 21:05 ` [PATCH v4 10/11] arm: dts: add imx7d-sdb support Frank.Li
2015-04-20 21:05 ` [PATCH v4 11/11] ARM: config: imx_v6_v7_defconfig add imx7d support Frank.Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150421142747.GD6325@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=Frank.Li@freescale.com \
    --cc=aalonso@freescale.com \
    --cc=b20788@freescale.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=lznuaa@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=shawn.guo@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).