All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] amba: Support clk parents and rates assigned in DT
@ 2015-05-28 20:52 ` Stephen Boyd
  0 siblings, 0 replies; 18+ messages in thread
From: Stephen Boyd @ 2015-05-28 20:52 UTC (permalink / raw)
  To: Russell King
  Cc: linux-kernel, linux-arm-kernel, Mike Turquette, linux-clk, Bintian Wang

Add the call to of_clk_set_defaults() into the amba probe path so
that devices on the amba bus can use the assigned rates and
parents feature of the common clock framework.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---

Russell,

Can you please ack this change? We're going to send it through the clk tree
because hisi clock requires it.

Thanks,
Stephen

 drivers/amba/bus.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index f0099360039e..350ed93d4281 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -19,6 +19,7 @@
 #include <linux/amba/bus.h>
 #include <linux/sizes.h>
 #include <linux/limits.h>
+#include <linux/clk/clk-conf.h>
 
 #include <asm/irq.h>
 
@@ -237,6 +238,10 @@ static int amba_probe(struct device *dev)
 	int ret;
 
 	do {
+		ret = of_clk_set_defaults(dev->of_node, false);
+		if (ret < 0)
+			break;
+
 		ret = dev_pm_domain_attach(dev, true);
 		if (ret == -EPROBE_DEFER)
 			break;
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [PATCH] amba: Support clk parents and rates assigned in DT
@ 2016-07-11 21:08 ` Stephen Boyd
  0 siblings, 0 replies; 18+ messages in thread
From: Stephen Boyd @ 2016-07-11 21:08 UTC (permalink / raw)
  To: Russell King
  Cc: linux-kernel, linux-arm-kernel, linux-clk, Michael Turquette,
	Jorge Ramirez Ortiz

Add the call to of_clk_set_defaults() into the amba probe path so
that devices on the amba bus can use the assigned rates and
parents feature of the common clock framework.

Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Jorge Ramirez Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 drivers/amba/bus.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index a5b5c87e2114..a56fa2a1e9aa 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -19,6 +19,7 @@
 #include <linux/amba/bus.h>
 #include <linux/sizes.h>
 #include <linux/limits.h>
+#include <linux/clk/clk-conf.h>
 
 #include <asm/irq.h>
 
@@ -237,6 +238,10 @@ static int amba_probe(struct device *dev)
 	int ret;
 
 	do {
+		ret = of_clk_set_defaults(dev->of_node, false);
+		if (ret < 0)
+			break;
+
 		ret = dev_pm_domain_attach(dev, true);
 		if (ret == -EPROBE_DEFER)
 			break;
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-08-19  7:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-28 20:52 [PATCH] amba: Support clk parents and rates assigned in DT Stephen Boyd
2015-05-28 20:52 ` Stephen Boyd
2015-07-06 23:57 ` Stephen Boyd
2015-07-06 23:57   ` Stephen Boyd
2015-07-07  8:47   ` Bintian
2015-07-07  8:47     ` Bintian
2015-07-07  9:33     ` Russell King - ARM Linux
2015-07-07  9:33       ` Russell King - ARM Linux
2015-07-07 10:07       ` Bintian
2015-07-07 10:07         ` Bintian
2016-07-11 21:08 Stephen Boyd
2016-07-11 21:08 ` Stephen Boyd
2016-07-12  0:39 ` Jorge Ramirez
2016-07-12  0:39   ` Jorge Ramirez
2016-08-19  6:52 ` Jorge Ramirez
2016-08-19  6:52   ` Jorge Ramirez
2016-08-19  7:53   ` Russell King - ARM Linux
2016-08-19  7:53     ` Russell King - ARM Linux

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.