From: Mike Turquette <mturquette@linaro.org>
To: "Benoît Cousson" <bcousson@baylibre.com>,
"Tony Lindgren" <tony@atomide.com>,
"Tero Kristo" <t-kristo@ti.com>
Cc: Suman Anna <s-anna@ti.com>,
linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Florian Vaussard <florian.vaussard@epfl.ch>
Subject: Re: [PATCH v3 1/2] CLK: TI: OMAP4/5/DRA7: Remove gpmc_fck from dummy clocks
Date: Wed, 26 Feb 2014 12:40:03 -0800 [thread overview]
Message-ID: <20140226204003.4353.17772@quantum> (raw)
In-Reply-To: <1393411089-9550-2-git-send-email-florian.vaussard@epfl.ch>
Quoting Florian Vaussard (2014-02-26 02:38:08)
> When arch/arm/mach-omap2/gpmc.c calls clk_get(..., "fck"), it will
> get a dummy clock and try to use it. As the rate is configured to zero,
> this will result in several divisions by zero, and misconfigured
> timings, with devices on the bus being lost in the La La Land.
>
> It is better to remove gpmc_fck from the dummy clocks, so that gpmc.c
> can fail gracefully.
>
> Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Looks good to me.
Regards,
Mike
> ---
> drivers/clk/ti/clk-44xx.c | 1 -
> drivers/clk/ti/clk-54xx.c | 1 -
> drivers/clk/ti/clk-7xx.c | 1 -
> 3 files changed, 3 deletions(-)
>
> diff --git a/drivers/clk/ti/clk-44xx.c b/drivers/clk/ti/clk-44xx.c
> index ae00218..02517a8 100644
> --- a/drivers/clk/ti/clk-44xx.c
> +++ b/drivers/clk/ti/clk-44xx.c
> @@ -222,7 +222,6 @@ static struct ti_dt_clk omap44xx_clks[] = {
> DT_CLK(NULL, "auxclk5_src_ck", "auxclk5_src_ck"),
> DT_CLK(NULL, "auxclk5_ck", "auxclk5_ck"),
> DT_CLK(NULL, "auxclkreq5_ck", "auxclkreq5_ck"),
> - DT_CLK("50000000.gpmc", "fck", "dummy_ck"),
> DT_CLK("omap_i2c.1", "ick", "dummy_ck"),
> DT_CLK("omap_i2c.2", "ick", "dummy_ck"),
> DT_CLK("omap_i2c.3", "ick", "dummy_ck"),
> diff --git a/drivers/clk/ti/clk-54xx.c b/drivers/clk/ti/clk-54xx.c
> index 0ef9f58..08f3d1b 100644
> --- a/drivers/clk/ti/clk-54xx.c
> +++ b/drivers/clk/ti/clk-54xx.c
> @@ -182,7 +182,6 @@ static struct ti_dt_clk omap54xx_clks[] = {
> DT_CLK(NULL, "auxclk3_src_ck", "auxclk3_src_ck"),
> DT_CLK(NULL, "auxclk3_ck", "auxclk3_ck"),
> DT_CLK(NULL, "auxclkreq3_ck", "auxclkreq3_ck"),
> - DT_CLK(NULL, "gpmc_ck", "dummy_ck"),
> DT_CLK("omap_i2c.1", "ick", "dummy_ck"),
> DT_CLK("omap_i2c.2", "ick", "dummy_ck"),
> DT_CLK("omap_i2c.3", "ick", "dummy_ck"),
> diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c
> index 9977653..f7e4073 100644
> --- a/drivers/clk/ti/clk-7xx.c
> +++ b/drivers/clk/ti/clk-7xx.c
> @@ -262,7 +262,6 @@ static struct ti_dt_clk dra7xx_clks[] = {
> DT_CLK(NULL, "vip1_gclk_mux", "vip1_gclk_mux"),
> DT_CLK(NULL, "vip2_gclk_mux", "vip2_gclk_mux"),
> DT_CLK(NULL, "vip3_gclk_mux", "vip3_gclk_mux"),
> - DT_CLK(NULL, "gpmc_ck", "dummy_ck"),
> DT_CLK("omap_i2c.1", "ick", "dummy_ck"),
> DT_CLK("omap_i2c.2", "ick", "dummy_ck"),
> DT_CLK("omap_i2c.3", "ick", "dummy_ck"),
> --
> 1.8.1.2
>
next prev parent reply other threads:[~2014-02-26 20:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 10:38 [PATCH v3 0/2] ARM: OMAP4+: Fix gpmc_fck clock Florian Vaussard
2014-02-26 10:38 ` [PATCH v3 1/2] CLK: TI: OMAP4/5/DRA7: Remove gpmc_fck from dummy clocks Florian Vaussard
2014-02-26 20:40 ` Mike Turquette [this message]
2014-02-28 17:28 ` Tony Lindgren
2014-02-28 18:27 ` Tero Kristo
2014-02-26 10:38 ` [PATCH v3 2/2] ARM: DTS: OMAP4/5: Use l3_ick for the gpmc node Florian Vaussard
2014-03-13 8:33 ` [PATCH v3 0/2] ARM: OMAP4+: Fix gpmc_fck clock Florian Vaussard
2014-03-13 20:24 ` Tony Lindgren
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=20140226204003.4353.17772@quantum \
--to=mturquette@linaro.org \
--cc=bcousson@baylibre.com \
--cc=florian.vaussard@epfl.ch \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=s-anna@ti.com \
--cc=t-kristo@ti.com \
--cc=tony@atomide.com \
/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).