* [PATCH] clk: pxa: unbreak lookup of CLK_POUT
@ 2017-12-26 13:30 Igor Grinberg
2017-12-28 7:59 ` Robert Jarzmik
2017-12-28 18:43 ` Stephen Boyd
0 siblings, 2 replies; 3+ messages in thread
From: Igor Grinberg @ 2017-12-26 13:30 UTC (permalink / raw)
To: linux-arm-kernel
Since switching to clk drivers, the CLK_POUT cannot be searched for by
clk_get() API and thus it returns with ENOENT.
Register it with the clk_lookup and thus unbreak the users of it.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
---
drivers/clk/pxa/clk-pxa3xx.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/pxa/clk-pxa3xx.c b/drivers/clk/pxa/clk-pxa3xx.c
index 42bdaa772be0..2d126df2bccd 100644
--- a/drivers/clk/pxa/clk-pxa3xx.c
+++ b/drivers/clk/pxa/clk-pxa3xx.c
@@ -329,12 +329,16 @@ static void __init pxa3xx_dummy_clocks_init(void)
static void __init pxa3xx_base_clocks_init(void)
{
+ struct clk *clk;
+
pxa3xx_register_plls();
pxa3xx_register_core();
clk_register_clk_pxa3xx_system_bus();
clk_register_clk_pxa3xx_ac97();
clk_register_clk_pxa3xx_smemc();
- clk_register_gate(NULL, "CLK_POUT", "osc_13mhz", 0, OSCC, 11, 0, NULL);
+ clk = clk_register_gate(NULL, "CLK_POUT",
+ "osc_13mhz", 0, OSCC, 11, 0, NULL);
+ clk_register_clkdev(clk, "CLK_POUT", NULL);
clkdev_pxa_register(CLK_OSTIMER, "OSTIMER0", NULL,
clk_register_fixed_factor(NULL, "os-timer0",
"osc_13mhz", 0, 1, 4));
--
2.13.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] clk: pxa: unbreak lookup of CLK_POUT
2017-12-26 13:30 [PATCH] clk: pxa: unbreak lookup of CLK_POUT Igor Grinberg
@ 2017-12-28 7:59 ` Robert Jarzmik
2017-12-28 18:43 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Robert Jarzmik @ 2017-12-28 7:59 UTC (permalink / raw)
To: linux-arm-kernel
Igor Grinberg <grinberg@compulab.co.il> writes:
> Since switching to clk drivers, the CLK_POUT cannot be searched for by
> clk_get() API and thus it returns with ENOENT.
> Register it with the clk_lookup and thus unbreak the users of it.
>
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] clk: pxa: unbreak lookup of CLK_POUT
2017-12-26 13:30 [PATCH] clk: pxa: unbreak lookup of CLK_POUT Igor Grinberg
2017-12-28 7:59 ` Robert Jarzmik
@ 2017-12-28 18:43 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2017-12-28 18:43 UTC (permalink / raw)
To: linux-arm-kernel
On 12/26, Igor Grinberg wrote:
> Since switching to clk drivers, the CLK_POUT cannot be searched for by
> clk_get() API and thus it returns with ENOENT.
> Register it with the clk_lookup and thus unbreak the users of it.
>
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
> ---
Applied to clk-next
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-28 18:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-26 13:30 [PATCH] clk: pxa: unbreak lookup of CLK_POUT Igor Grinberg
2017-12-28 7:59 ` Robert Jarzmik
2017-12-28 18:43 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).