Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bgolaszewski@baylibre.com (Bartosz Golaszewski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/4] ARM: da850: don't add the emac clock to the clock lookup table twice
Date: Wed,  7 Dec 2016 16:22:16 +0100	[thread overview]
Message-ID: <1481124138-27337-3-git-send-email-bgolaszewski@baylibre.com> (raw)
In-Reply-To: <1481124138-27337-1-git-send-email-bgolaszewski@baylibre.com>

Similarly to the aemif clock - this screws up the linked list of clock
children. Create a separate clock for mdio inheriting the rate from
emac_clk.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 arch/arm/mach-davinci/da850.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c
index e9d019c..6b1fbac 100644
--- a/arch/arm/mach-davinci/da850.c
+++ b/arch/arm/mach-davinci/da850.c
@@ -319,6 +319,11 @@ static struct clk emac_clk = {
 	.gpsc		= 1,
 };
 
+static struct clk mdio_clk = {
+	.name		= "mdio",
+	.parent		= &emac_clk,
+};
+
 static struct clk mcasp_clk = {
 	.name		= "mcasp",
 	.parent		= &async3_clk,
@@ -539,7 +544,7 @@ static struct clk_lookup da850_clks[] = {
 	CLK(NULL,		"arm",		&arm_clk),
 	CLK(NULL,		"rmii",		&rmii_clk),
 	CLK("davinci_emac.1",	NULL,		&emac_clk),
-	CLK("davinci_mdio.0",	"fck",		&emac_clk),
+	CLK("davinci_mdio.0",	"fck",		&mdio_clk),
 	CLK("davinci-mcasp.0",	NULL,		&mcasp_clk),
 	CLK("davinci-mcbsp.0",	NULL,		&mcbsp0_clk),
 	CLK("davinci-mcbsp.1",	NULL,		&mcbsp1_clk),
-- 
2.9.3

  parent reply	other threads:[~2016-12-07 15:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-07 15:22 [PATCH v4 0/4] ARM: da850: fix pll0 rate setting Bartosz Golaszewski
2016-12-07 15:22 ` [PATCH v4 1/4] ARM: da850: fix infinite loop in clk_set_rate() Bartosz Golaszewski
2017-01-02  8:52   ` Sekhar Nori
2016-12-07 15:22 ` Bartosz Golaszewski [this message]
2017-01-02  9:26   ` [PATCH v4 2/4] ARM: da850: don't add the emac clock to the clock lookup table twice Sekhar Nori
2016-12-07 15:22 ` [PATCH v4 3/4] ARM: da850: coding style fix Bartosz Golaszewski
2017-01-02  9:30   ` Sekhar Nori
2016-12-07 15:22 ` [PATCH v4 4/4] ARM: da850: fix da850_set_pll0rate() Bartosz Golaszewski
2017-01-02 10:12   ` Sekhar Nori

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=1481124138-27337-3-git-send-email-bgolaszewski@baylibre.com \
    --to=bgolaszewski@baylibre.com \
    --cc=linux-arm-kernel@lists.infradead.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