All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: <mturquette@baylibre.com>, <sboyd@codeaurora.org>,
	<tony@atomide.com>, <lee.jones@linaro.org>, <robh+dt@kernel.org>,
	<lgirdwood@gmail.com>, <broonie@kernel.org>
Cc: <t-kristo@ti.com>, <linux-kernel@vger.kernel.org>,
	<linux-clk@vger.kernel.org>, <linux-omap@vger.kernel.org>,
	<devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<alsa-devel@alsa-project.org>
Subject: [PATCH 02/14] clk: twl6040: Register the clock as of_clk_provider
Date: Wed, 18 May 2016 16:46:24 +0300	[thread overview]
Message-ID: <1463579196-5484-3-git-send-email-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <1463579196-5484-1-git-send-email-peter.ujfalusi@ti.com>

In order ot be able to use the pdmclk clock via DT it need to be registered
as of_clk_provide.
Since the twl6040 clock driver does not have it's own DT node, use the
parent's node for registering.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 drivers/clk/clk-twl6040.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c
index e167e0bbaff5..6a2dbe6a1627 100644
--- a/drivers/clk/clk-twl6040.c
+++ b/drivers/clk/clk-twl6040.c
@@ -95,7 +95,8 @@ static int twl6040_clk_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, clkdata);
 
-	return 0;
+	return of_clk_add_provider(pdev->dev.parent->of_node,
+				   of_clk_src_simple_get, clkdata->clk);
 }
 
 static struct platform_driver twl6040_clk_driver = {
-- 
2.8.2

WARNING: multiple messages have this Message-ID (diff)
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: mturquette@baylibre.com, sboyd@codeaurora.org, tony@atomide.com,
	lee.jones@linaro.org, robh+dt@kernel.org, lgirdwood@gmail.com,
	broonie@kernel.org
Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
	linux-kernel@vger.kernel.org, t-kristo@ti.com,
	linux-omap@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/14] clk: twl6040: Register the clock as of_clk_provider
Date: Wed, 18 May 2016 16:46:24 +0300	[thread overview]
Message-ID: <1463579196-5484-3-git-send-email-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <1463579196-5484-1-git-send-email-peter.ujfalusi@ti.com>

In order ot be able to use the pdmclk clock via DT it need to be registered
as of_clk_provide.
Since the twl6040 clock driver does not have it's own DT node, use the
parent's node for registering.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 drivers/clk/clk-twl6040.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c
index e167e0bbaff5..6a2dbe6a1627 100644
--- a/drivers/clk/clk-twl6040.c
+++ b/drivers/clk/clk-twl6040.c
@@ -95,7 +95,8 @@ static int twl6040_clk_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, clkdata);
 
-	return 0;
+	return of_clk_add_provider(pdev->dev.parent->of_node,
+				   of_clk_src_simple_get, clkdata->clk);
 }
 
 static struct platform_driver twl6040_clk_driver = {
-- 
2.8.2

WARNING: multiple messages have this Message-ID (diff)
From: peter.ujfalusi@ti.com (Peter Ujfalusi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/14] clk: twl6040: Register the clock as of_clk_provider
Date: Wed, 18 May 2016 16:46:24 +0300	[thread overview]
Message-ID: <1463579196-5484-3-git-send-email-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <1463579196-5484-1-git-send-email-peter.ujfalusi@ti.com>

In order ot be able to use the pdmclk clock via DT it need to be registered
as of_clk_provide.
Since the twl6040 clock driver does not have it's own DT node, use the
parent's node for registering.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 drivers/clk/clk-twl6040.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c
index e167e0bbaff5..6a2dbe6a1627 100644
--- a/drivers/clk/clk-twl6040.c
+++ b/drivers/clk/clk-twl6040.c
@@ -95,7 +95,8 @@ static int twl6040_clk_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, clkdata);
 
-	return 0;
+	return of_clk_add_provider(pdev->dev.parent->of_node,
+				   of_clk_src_simple_get, clkdata->clk);
 }
 
 static struct platform_driver twl6040_clk_driver = {
-- 
2.8.2

  parent reply	other threads:[~2016-05-18 13:51 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18 13:46 [PATCH 00/14] clk/mfd/ASoC/ARM: OMAP4/5: McPDM/twl6040 pdmclk support Peter Ujfalusi
2016-05-18 13:46 ` Peter Ujfalusi
2016-05-18 13:46 ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 01/14] clk: twl6040: Correct clk_ops Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` Peter Ujfalusi [this message]
2016-05-18 13:46   ` [PATCH 02/14] clk: twl6040: Register the clock as of_clk_provider Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 03/14] clk: twl6040: Rename the driver and use consistent names in the code Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 04/14] mfd: twl6040: The chip does not support bulk access Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 05/14] mfd: twl6040: Register child device for twl6040-pdmclk Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 23:30   ` Rob Herring
2016-05-18 23:30     ` Rob Herring
2016-05-18 13:46 ` [PATCH 06/14] ARM: dts: omap5-board-common: Add pdmclk binding for audio Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 07/14] ARM: dts: omap4-panda-common: " Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 08/14] ARM: dts: omap4-sdp: " Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 09/14] ARM: dts: omap4-var-som-om44: " Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 10/14] ARM: dts: omap4-duovero: " Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 11/14] ASoC: omap: Kconfig: SND_OMAP_SOC_OMAP_ABE_TWL6040 to select CLK_TWL6040 Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 12/14] ASoC: omap-mcpdm: Move the WD enable write inside omap_mcpdm_open_streams() Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 13/14] ASoC: omap-mcpdm: Support for suspend resume Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46 ` [PATCH 14/14] ASoC: omap-mcpdm: Add support for pdmclk clock handling Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 13:46   ` Peter Ujfalusi
2016-05-18 23:31   ` Rob Herring
2016-05-18 23:31     ` Rob Herring
2016-05-27 20:31   ` Mark Brown
2016-05-27 20:31     ` Mark Brown

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=1463579196-5484-3-git-send-email-peter.ujfalusi@ti.com \
    --to=peter.ujfalusi@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@codeaurora.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.