* [PATCH] clk: socfpga: stratix10: fix naming convention for the fixed-clocks
@ 2018-12-10 23:22 Dinh Nguyen
2018-12-14 1:37 ` Stephen Boyd
0 siblings, 1 reply; 3+ messages in thread
From: Dinh Nguyen @ 2018-12-10 23:22 UTC (permalink / raw)
To: linux-clk; +Cc: dinguyen, mturquette, sboyd
The fixed clocks in the DTS file have a hyphen, but the clock driver has
the fixed clocks using underbar. Thus the clock driver cannot detect the
other fixed clocks correctly. Change the fixed clock names to a hyphen.
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
drivers/clk/socfpga/clk-s10.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/clk/socfpga/clk-s10.c b/drivers/clk/socfpga/clk-s10.c
index 5b238fc314ac..8281dfbf38c2 100644
--- a/drivers/clk/socfpga/clk-s10.c
+++ b/drivers/clk/socfpga/clk-s10.c
@@ -12,17 +12,17 @@
#include "stratix10-clk.h"
-static const char * const pll_mux[] = { "osc1", "cb_intosc_hs_div2_clk",
- "f2s_free_clk",};
+static const char * const pll_mux[] = { "osc1", "cb-intosc-hs-div2-clk",
+ "f2s-free-clk",};
static const char * const cntr_mux[] = { "main_pll", "periph_pll",
- "osc1", "cb_intosc_hs_div2_clk",
- "f2s_free_clk"};
-static const char * const boot_mux[] = { "osc1", "cb_intosc_hs_div2_clk",};
+ "osc1", "cb-intosc-hs-div2-clk",
+ "f2s-free-clk"};
+static const char * const boot_mux[] = { "osc1", "cb-intosc-hs-div2-clk",};
static const char * const noc_free_mux[] = {"main_noc_base_clk",
"peri_noc_base_clk",
- "osc1", "cb_intosc_hs_div2_clk",
- "f2s_free_clk"};
+ "osc1", "cb-intosc-hs-div2-clk",
+ "f2s-free-clk"};
static const char * const emaca_free_mux[] = {"peri_emaca_clk", "boot_clk"};
static const char * const emacb_free_mux[] = {"peri_emacb_clk", "boot_clk"};
@@ -33,14 +33,14 @@ static const char * const s2f_usr1_free_mux[] = {"peri_s2f_usr1_clk", "boot_clk"
static const char * const psi_ref_free_mux[] = {"peri_psi_ref_clk", "boot_clk"};
static const char * const mpu_mux[] = { "mpu_free_clk", "boot_clk",};
-static const char * const s2f_usr0_mux[] = {"f2s_free_clk", "boot_clk"};
+static const char * const s2f_usr0_mux[] = {"f2s-free-clk", "boot_clk"};
static const char * const emac_mux[] = {"emaca_free_clk", "emacb_free_clk"};
static const char * const noc_mux[] = {"noc_free_clk", "boot_clk"};
static const char * const mpu_free_mux[] = {"main_mpu_base_clk",
"peri_mpu_base_clk",
- "osc1", "cb_intosc_hs_div2_clk",
- "f2s_free_clk"};
+ "osc1", "cb-intosc-hs-div2-clk",
+ "f2s-free-clk"};
/* clocks in AO (always on) controller */
static const struct stratix10_pll_clock s10_pll_clks[] = {
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: socfpga: stratix10: fix naming convention for the fixed-clocks
2018-12-10 23:22 [PATCH] clk: socfpga: stratix10: fix naming convention for the fixed-clocks Dinh Nguyen
@ 2018-12-14 1:37 ` Stephen Boyd
2018-12-17 16:32 ` Dinh Nguyen
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Boyd @ 2018-12-14 1:37 UTC (permalink / raw)
To: Dinh Nguyen, linux-clk; +Cc: dinguyen, mturquette
Quoting Dinh Nguyen (2018-12-10 15:22:03)
> The fixed clocks in the DTS file have a hyphen, but the clock driver has
> the fixed clocks using underbar. Thus the clock driver cannot detect the
> other fixed clocks correctly. Change the fixed clock names to a hyphen.
>
> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
> ---
Any fixes tag? Should it go back to stable trees?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: socfpga: stratix10: fix naming convention for the fixed-clocks
2018-12-14 1:37 ` Stephen Boyd
@ 2018-12-17 16:32 ` Dinh Nguyen
0 siblings, 0 replies; 3+ messages in thread
From: Dinh Nguyen @ 2018-12-17 16:32 UTC (permalink / raw)
To: Stephen Boyd, linux-clk; +Cc: mturquette
On 12/13/18 7:37 PM, Stephen Boyd wrote:
> Quoting Dinh Nguyen (2018-12-10 15:22:03)
>> The fixed clocks in the DTS file have a hyphen, but the clock driver has
>> the fixed clocks using underbar. Thus the clock driver cannot detect the
>> other fixed clocks correctly. Change the fixed clock names to a hyphen.
>>
>> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
>> ---
>
> Any fixes tag? Should it go back to stable trees?
>
No, full stratix10 platform support is only available starting with
v4.19 kernel. Figure I will send this patch, once its accepted to the
v4.19-stable kernel.
Thanks,
Dinh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-17 16:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-10 23:22 [PATCH] clk: socfpga: stratix10: fix naming convention for the fixed-clocks Dinh Nguyen
2018-12-14 1:37 ` Stephen Boyd
2018-12-17 16:32 ` Dinh Nguyen
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).