* [PATCH] clk: ti: fix flag space conflict with clkctrl clocks
@ 2018-03-27 17:47 Tero Kristo
2018-03-27 20:55 ` Tony Lindgren
2018-03-29 18:25 ` Tero Kristo
0 siblings, 2 replies; 4+ messages in thread
From: Tero Kristo @ 2018-03-27 17:47 UTC (permalink / raw)
To: sboyd, mturquette, linux-omap, linux-clk, tony; +Cc: arnd, linux-arm-kernel
The introduction of support for CLK_SET_RATE_PARENT flag for clkctrl
clocks used a generic clock flag, which causes a conflict with the
rest of the clkctrl flags, namely the NO_IDLEST flag. This can cause
boot failures on certain platforms where this flag is introduced, by
omitting the wait for the clockctrl module to be fully enabled before
proceeding with rest of the code.
Fix this by moving all the clkctrl specific flags to their own bit-range.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Fixes: 49159a9dc3da ("clk: ti: add support for CLK_SET_RATE_PARENT flag")
Reported-by: Christophe Lyon <christophe.lyon@linaro.org>
---
drivers/clk/ti/clock.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/clk/ti/clock.h b/drivers/clk/ti/clock.h
index 90b86aa..b582780 100644
--- a/drivers/clk/ti/clock.h
+++ b/drivers/clk/ti/clock.h
@@ -76,6 +76,11 @@ enum {
#define CLKF_CORE (1 << 9)
#define CLKF_J_TYPE (1 << 10)
+/* CLKCTRL flags */
+#define CLKF_SW_SUP BIT(5)
+#define CLKF_HW_SUP BIT(6)
+#define CLKF_NO_IDLEST BIT(7)
+
#define CLK(dev, con, ck) \
{ \
.lk = { \
@@ -185,10 +190,6 @@ struct omap_clkctrl_data {
extern const struct omap_clkctrl_data dm814_clkctrl_data[];
extern const struct omap_clkctrl_data dm816_clkctrl_data[];
-#define CLKF_SW_SUP BIT(0)
-#define CLKF_HW_SUP BIT(1)
-#define CLKF_NO_IDLEST BIT(2)
-
typedef void (*ti_of_clk_init_cb_t)(void *, struct device_node *);
struct clk *ti_clk_register(struct device *dev, struct clk_hw *hw,
--
1.9.1
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: ti: fix flag space conflict with clkctrl clocks
2018-03-27 17:47 [PATCH] clk: ti: fix flag space conflict with clkctrl clocks Tero Kristo
@ 2018-03-27 20:55 ` Tony Lindgren
2018-03-29 18:25 ` Tero Kristo
1 sibling, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2018-03-27 20:55 UTC (permalink / raw)
To: Tero Kristo
Cc: sboyd, mturquette, linux-omap, linux-clk, arnd, linux-arm-kernel
* Tero Kristo <t-kristo@ti.com> [180327 17:48]:
> The introduction of support for CLK_SET_RATE_PARENT flag for clkctrl
> clocks used a generic clock flag, which causes a conflict with the
> rest of the clkctrl flags, namely the NO_IDLEST flag. This can cause
> boot failures on certain platforms where this flag is introduced, by
> omitting the wait for the clockctrl module to be fully enabled before
> proceeding with rest of the code.
>
> Fix this by moving all the clkctrl specific flags to their own bit-range.
>
> Signed-off-by: Tero Kristo <t-kristo@ti.com>
> Fixes: 49159a9dc3da ("clk: ti: add support for CLK_SET_RATE_PARENT flag")
> Reported-by: Christophe Lyon <christophe.lyon@linaro.org>
I boot tested this on am437x-idk and bbb with multi_v7_defconfig, so:
Tested-by: Tony Lindgren <tony@atomide.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: ti: fix flag space conflict with clkctrl clocks
2018-03-27 17:47 [PATCH] clk: ti: fix flag space conflict with clkctrl clocks Tero Kristo
2018-03-27 20:55 ` Tony Lindgren
@ 2018-03-29 18:25 ` Tero Kristo
2018-04-05 20:05 ` Stephen Boyd
1 sibling, 1 reply; 4+ messages in thread
From: Tero Kristo @ 2018-03-29 18:25 UTC (permalink / raw)
To: sboyd, mturquette, linux-omap, linux-clk, tony; +Cc: arnd, linux-arm-kernel
On 27/03/18 20:47, Tero Kristo wrote:
> The introduction of support for CLK_SET_RATE_PARENT flag for clkctrl
> clocks used a generic clock flag, which causes a conflict with the
> rest of the clkctrl flags, namely the NO_IDLEST flag. This can cause
> boot failures on certain platforms where this flag is introduced, by
> omitting the wait for the clockctrl module to be fully enabled before
> proceeding with rest of the code.
>
> Fix this by moving all the clkctrl specific flags to their own bit-range.
>
> Signed-off-by: Tero Kristo <t-kristo@ti.com>
> Fixes: 49159a9dc3da ("clk: ti: add support for CLK_SET_RATE_PARENT flag")
> Reported-by: Christophe Lyon <christophe.lyon@linaro.org>
Stephen, can you pick this up as a late fix?
-Tero
> ---
> drivers/clk/ti/clock.h | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/clk/ti/clock.h b/drivers/clk/ti/clock.h
> index 90b86aa..b582780 100644
> --- a/drivers/clk/ti/clock.h
> +++ b/drivers/clk/ti/clock.h
> @@ -76,6 +76,11 @@ enum {
> #define CLKF_CORE (1 << 9)
> #define CLKF_J_TYPE (1 << 10)
>
> +/* CLKCTRL flags */
> +#define CLKF_SW_SUP BIT(5)
> +#define CLKF_HW_SUP BIT(6)
> +#define CLKF_NO_IDLEST BIT(7)
> +
> #define CLK(dev, con, ck) \
> { \
> .lk = { \
> @@ -185,10 +190,6 @@ struct omap_clkctrl_data {
> extern const struct omap_clkctrl_data dm814_clkctrl_data[];
> extern const struct omap_clkctrl_data dm816_clkctrl_data[];
>
> -#define CLKF_SW_SUP BIT(0)
> -#define CLKF_HW_SUP BIT(1)
> -#define CLKF_NO_IDLEST BIT(2)
> -
> typedef void (*ti_of_clk_init_cb_t)(void *, struct device_node *);
>
> struct clk *ti_clk_register(struct device *dev, struct clk_hw *hw,
>
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: ti: fix flag space conflict with clkctrl clocks
2018-03-29 18:25 ` Tero Kristo
@ 2018-04-05 20:05 ` Stephen Boyd
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2018-04-05 20:05 UTC (permalink / raw)
To: Tero Kristo, linux-clk, linux-omap, mturquette, tony
Cc: arnd, linux-arm-kernel
Quoting Tero Kristo (2018-03-29 11:25:07)
> On 27/03/18 20:47, Tero Kristo wrote:
> > The introduction of support for CLK_SET_RATE_PARENT flag for clkctrl
> > clocks used a generic clock flag, which causes a conflict with the
> > rest of the clkctrl flags, namely the NO_IDLEST flag. This can cause
> > boot failures on certain platforms where this flag is introduced, by
> > omitting the wait for the clockctrl module to be fully enabled before
> > proceeding with rest of the code.
> > =
> > Fix this by moving all the clkctrl specific flags to their own bit-rang=
e.
> > =
> > Signed-off-by: Tero Kristo <t-kristo@ti.com>
> > Fixes: 49159a9dc3da ("clk: ti: add support for CLK_SET_RATE_PARENT flag=
")
> > Reported-by: Christophe Lyon <christophe.lyon@linaro.org>
> =
> Stephen, can you pick this up as a late fix?
> =
Sorry I was traveling for a week. I'll pick this up for this merge
window and then stable can get it.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-04-05 20:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-27 17:47 [PATCH] clk: ti: fix flag space conflict with clkctrl clocks Tero Kristo
2018-03-27 20:55 ` Tony Lindgren
2018-03-29 18:25 ` Tero Kristo
2018-04-05 20:05 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox