From mboxrd@z Thu Jan 1 00:00:00 1970 From: jorge.ramirez-ortiz@linaro.org (Jorge Ramirez) Date: Fri, 19 Aug 2016 08:52:35 +0200 Subject: [PATCH] amba: Support clk parents and rates assigned in DT In-Reply-To: <20160711210852.31553-1-sboyd@codeaurora.org> References: <20160711210852.31553-1-sboyd@codeaurora.org> Message-ID: <453b7ea6-b6c9-ae42-6ac5-81faa1eb2b5d@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.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 > Cc: Jorge Ramirez Ortiz > Signed-off-by: Stephen Boyd > --- > 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 > #include > #include > +#include > > #include > > @@ -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; Stephen/Russell, what is the status of this patch? has it been merged? thanks Jorge