All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jorge Ramirez <jorge.ramirez-ortiz@linaro.org>
To: Stephen Boyd <sboyd@codeaurora.org>,
	Russell King <linux@armlinux.org.uk>
Cc: linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
	Michael Turquette <mturquette@baylibre.com>
Subject: Re: [PATCH] amba: Support clk parents and rates assigned in DT
Date: Tue, 12 Jul 2016 02:39:54 +0200	[thread overview]
Message-ID: <57843C5A.4040806@linaro.org> (raw)
In-Reply-To: <20160711210852.31553-1-sboyd@codeaurora.org>

On 07/11/2016 11:08 PM, Stephen Boyd wrote:
> 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>

Tested-by: Jorge Ramirez Ortiz <jorge.ramirez-ortiz@linaro.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;

WARNING: multiple messages have this Message-ID (diff)
From: jorge.ramirez-ortiz@linaro.org (Jorge Ramirez)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] amba: Support clk parents and rates assigned in DT
Date: Tue, 12 Jul 2016 02:39:54 +0200	[thread overview]
Message-ID: <57843C5A.4040806@linaro.org> (raw)
In-Reply-To: <20160711210852.31553-1-sboyd@codeaurora.org>

On 07/11/2016 11:08 PM, Stephen Boyd wrote:
> 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>

Tested-by: Jorge Ramirez Ortiz <jorge.ramirez-ortiz@linaro.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;

  reply	other threads:[~2016-07-12  0:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-11 21:08 [PATCH] amba: Support clk parents and rates assigned in DT Stephen Boyd
2016-07-11 21:08 ` Stephen Boyd
2016-07-12  0:39 ` Jorge Ramirez [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
2015-05-28 20:52 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

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=57843C5A.4040806@linaro.org \
    --to=jorge.ramirez-ortiz@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@codeaurora.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 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.