* [PATCH v2] dt-bindings: clock: imx6ul: Do not change the clock definition order
@ 2018-06-02 14:02 Fabio Estevam
2018-06-05 21:08 ` Rob Herring
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Fabio Estevam @ 2018-06-02 14:02 UTC (permalink / raw)
To: sboyd
Cc: michael, stefan.wahren, robh+dt, devicetree, linux-clk,
anson.huang, stefan, Fabio Estevam
From: Fabio Estevam <fabio.estevam@nxp.com>
Commit f5a4670de966 ("clk: imx: Add new clo01 and clo2 controlled
by CCOSR") introduced the CLK_CLKO definitions, but didn't put them
at the end of the list, which may cause dtb breakage when running an old
dtb with a newer kernel.
In order to avoid that, simply add the new CLK_CKO clock definitions
at the end of the list.
Fixes: f5a4670de966 ("clk: imx: Add new clo01 and clo2 controlled by CCOSR")
Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
Changes since v1:
- Use 12 char for the commit id
include/dt-bindings/clock/imx6ul-clock.h | 40 +++++++++++++++-----------------
1 file changed, 19 insertions(+), 21 deletions(-)
diff --git a/include/dt-bindings/clock/imx6ul-clock.h b/include/dt-bindings/clock/imx6ul-clock.h
index 9564597..0aa1d9c 100644
--- a/include/dt-bindings/clock/imx6ul-clock.h
+++ b/include/dt-bindings/clock/imx6ul-clock.h
@@ -235,27 +235,25 @@
#define IMX6UL_CLK_CSI_PODF 222
#define IMX6UL_CLK_PLL3_120M 223
#define IMX6UL_CLK_KPP 224
-#define IMX6UL_CLK_CKO1_SEL 225
-#define IMX6UL_CLK_CKO1_PODF 226
-#define IMX6UL_CLK_CKO1 227
-#define IMX6UL_CLK_CKO2_SEL 228
-#define IMX6UL_CLK_CKO2_PODF 229
-#define IMX6UL_CLK_CKO2 230
-#define IMX6UL_CLK_CKO 231
-
-/* For i.MX6ULL */
-#define IMX6ULL_CLK_ESAI_PRED 232
-#define IMX6ULL_CLK_ESAI_PODF 233
-#define IMX6ULL_CLK_ESAI_EXTAL 234
-#define IMX6ULL_CLK_ESAI_MEM 235
-#define IMX6ULL_CLK_ESAI_IPG 236
-#define IMX6ULL_CLK_DCP_CLK 237
-#define IMX6ULL_CLK_EPDC_PRE_SEL 238
-#define IMX6ULL_CLK_EPDC_SEL 239
-#define IMX6ULL_CLK_EPDC_PODF 240
-#define IMX6ULL_CLK_EPDC_ACLK 241
-#define IMX6ULL_CLK_EPDC_PIX 242
-#define IMX6ULL_CLK_ESAI_SEL 243
+#define IMX6ULL_CLK_ESAI_PRED 225
+#define IMX6ULL_CLK_ESAI_PODF 226
+#define IMX6ULL_CLK_ESAI_EXTAL 227
+#define IMX6ULL_CLK_ESAI_MEM 228
+#define IMX6ULL_CLK_ESAI_IPG 229
+#define IMX6ULL_CLK_DCP_CLK 230
+#define IMX6ULL_CLK_EPDC_PRE_SEL 231
+#define IMX6ULL_CLK_EPDC_SEL 232
+#define IMX6ULL_CLK_EPDC_PODF 233
+#define IMX6ULL_CLK_EPDC_ACLK 234
+#define IMX6ULL_CLK_EPDC_PIX 235
+#define IMX6ULL_CLK_ESAI_SEL 236
+#define IMX6UL_CLK_CKO1_SEL 237
+#define IMX6UL_CLK_CKO1_PODF 238
+#define IMX6UL_CLK_CKO1 239
+#define IMX6UL_CLK_CKO2_SEL 240
+#define IMX6UL_CLK_CKO2_PODF 241
+#define IMX6UL_CLK_CKO2 242
+#define IMX6UL_CLK_CKO 243
#define IMX6UL_CLK_END 244
#endif /* __DT_BINDINGS_CLOCK_IMX6UL_H */
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: clock: imx6ul: Do not change the clock definition order
2018-06-02 14:02 [PATCH v2] dt-bindings: clock: imx6ul: Do not change the clock definition order Fabio Estevam
@ 2018-06-05 21:08 ` Rob Herring
2018-06-06 16:27 ` Stefan Agner
2018-06-29 18:26 ` Stephen Boyd
2 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2018-06-05 21:08 UTC (permalink / raw)
To: Fabio Estevam
Cc: sboyd, michael, stefan.wahren, devicetree, linux-clk, anson.huang,
stefan, Fabio Estevam
On Sat, Jun 02, 2018 at 11:02:02AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
>
> Commit f5a4670de966 ("clk: imx: Add new clo01 and clo2 controlled
> by CCOSR") introduced the CLK_CLKO definitions, but didn't put them
> at the end of the list, which may cause dtb breakage when running an old
> dtb with a newer kernel.
>
> In order to avoid that, simply add the new CLK_CKO clock definitions
> at the end of the list.
>
> Fixes: f5a4670de966 ("clk: imx: Add new clo01 and clo2 controlled by CCOSR")
> Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
> Changes since v1:
> - Use 12 char for the commit id
>
> include/dt-bindings/clock/imx6ul-clock.h | 40 +++++++++++++++-----------------
> 1 file changed, 19 insertions(+), 21 deletions(-)
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: clock: imx6ul: Do not change the clock definition order
2018-06-02 14:02 [PATCH v2] dt-bindings: clock: imx6ul: Do not change the clock definition order Fabio Estevam
2018-06-05 21:08 ` Rob Herring
@ 2018-06-06 16:27 ` Stefan Agner
2018-06-06 21:56 ` Fabio Estevam
2018-06-29 18:26 ` Stephen Boyd
2 siblings, 1 reply; 5+ messages in thread
From: Stefan Agner @ 2018-06-06 16:27 UTC (permalink / raw)
To: Fabio Estevam
Cc: sboyd, michael, stefan.wahren, robh+dt, devicetree, linux-clk,
anson.huang, Fabio Estevam
On 02.06.2018 16:02, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
>
> Commit f5a4670de966 ("clk: imx: Add new clo01 and clo2 controlled
> by CCOSR") introduced the CLK_CLKO definitions, but didn't put them
> at the end of the list, which may cause dtb breakage when running an old
> dtb with a newer kernel.
>
> In order to avoid that, simply add the new CLK_CKO clock definitions
> at the end of the list.
>
> Fixes: f5a4670de966 ("clk: imx: Add new clo01 and clo2 controlled by CCOSR")
> Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
> Changes since v1:
> - Use 12 char for the commit id
>
> include/dt-bindings/clock/imx6ul-clock.h | 40 +++++++++++++++-----------------
> 1 file changed, 19 insertions(+), 21 deletions(-)
>
> diff --git a/include/dt-bindings/clock/imx6ul-clock.h
> b/include/dt-bindings/clock/imx6ul-clock.h
> index 9564597..0aa1d9c 100644
> --- a/include/dt-bindings/clock/imx6ul-clock.h
> +++ b/include/dt-bindings/clock/imx6ul-clock.h
> @@ -235,27 +235,25 @@
> #define IMX6UL_CLK_CSI_PODF 222
> #define IMX6UL_CLK_PLL3_120M 223
> #define IMX6UL_CLK_KPP 224
> -#define IMX6UL_CLK_CKO1_SEL 225
> -#define IMX6UL_CLK_CKO1_PODF 226
> -#define IMX6UL_CLK_CKO1 227
> -#define IMX6UL_CLK_CKO2_SEL 228
> -#define IMX6UL_CLK_CKO2_PODF 229
> -#define IMX6UL_CLK_CKO2 230
> -#define IMX6UL_CLK_CKO 231
> -
> -/* For i.MX6ULL */
> -#define IMX6ULL_CLK_ESAI_PRED 232
> -#define IMX6ULL_CLK_ESAI_PODF 233
> -#define IMX6ULL_CLK_ESAI_EXTAL 234
> -#define IMX6ULL_CLK_ESAI_MEM 235
> -#define IMX6ULL_CLK_ESAI_IPG 236
> -#define IMX6ULL_CLK_DCP_CLK 237
> -#define IMX6ULL_CLK_EPDC_PRE_SEL 238
> -#define IMX6ULL_CLK_EPDC_SEL 239
> -#define IMX6ULL_CLK_EPDC_PODF 240
> -#define IMX6ULL_CLK_EPDC_ACLK 241
> -#define IMX6ULL_CLK_EPDC_PIX 242
> -#define IMX6ULL_CLK_ESAI_SEL 243
> +#define IMX6ULL_CLK_ESAI_PRED 225
> +#define IMX6ULL_CLK_ESAI_PODF 226
> +#define IMX6ULL_CLK_ESAI_EXTAL 227
> +#define IMX6ULL_CLK_ESAI_MEM 228
> +#define IMX6ULL_CLK_ESAI_IPG 229
> +#define IMX6ULL_CLK_DCP_CLK 230
> +#define IMX6ULL_CLK_EPDC_PRE_SEL 231
> +#define IMX6ULL_CLK_EPDC_SEL 232
> +#define IMX6ULL_CLK_EPDC_PODF 233
> +#define IMX6ULL_CLK_EPDC_ACLK 234
> +#define IMX6ULL_CLK_EPDC_PIX 235
> +#define IMX6ULL_CLK_ESAI_SEL 236
Nit: Add an empty line here?
Reviewed-by: Stefan Agner <stefan@agner.ch>
> +#define IMX6UL_CLK_CKO1_SEL 237
> +#define IMX6UL_CLK_CKO1_PODF 238
> +#define IMX6UL_CLK_CKO1 239
> +#define IMX6UL_CLK_CKO2_SEL 240
> +#define IMX6UL_CLK_CKO2_PODF 241
> +#define IMX6UL_CLK_CKO2 242
> +#define IMX6UL_CLK_CKO 243
> #define IMX6UL_CLK_END 244
>
> #endif /* __DT_BINDINGS_CLOCK_IMX6UL_H */
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: clock: imx6ul: Do not change the clock definition order
2018-06-06 16:27 ` Stefan Agner
@ 2018-06-06 21:56 ` Fabio Estevam
0 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2018-06-06 21:56 UTC (permalink / raw)
To: Stefan Agner
Cc: Stephen Boyd, Michael Trimarchi, Stefan Wahren, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
linux-clk, Yongcai Huang, Fabio Estevam
Hi Stefan,
On Wed, Jun 6, 2018 at 1:27 PM, Stefan Agner <stefan@agner.ch> wrote:
>> +#define IMX6ULL_CLK_ESAI_SEL 236
>
> Nit: Add an empty line here?
The lack of an empty line is on purpose because I wanted to avoid
someone thinking:
"Oh, there is hole here, let me fill it with new clocks here" :-)
> Reviewed-by: Stefan Agner <stefan@agner.ch>
Thanks for reviewing!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: clock: imx6ul: Do not change the clock definition order
2018-06-02 14:02 [PATCH v2] dt-bindings: clock: imx6ul: Do not change the clock definition order Fabio Estevam
2018-06-05 21:08 ` Rob Herring
2018-06-06 16:27 ` Stefan Agner
@ 2018-06-29 18:26 ` Stephen Boyd
2 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2018-06-29 18:26 UTC (permalink / raw)
To: Fabio Estevam
Cc: michael, stefan.wahren, robh+dt, devicetree, linux-clk,
anson.huang, stefan, Fabio Estevam
Quoting Fabio Estevam (2018-06-02 07:02:02)
> From: Fabio Estevam <fabio.estevam@nxp.com>
>
> Commit f5a4670de966 ("clk: imx: Add new clo01 and clo2 controlled
> by CCOSR") introduced the CLK_CLKO definitions, but didn't put them
> at the end of the list, which may cause dtb breakage when running an old
> dtb with a newer kernel.
>
> In order to avoid that, simply add the new CLK_CKO clock definitions
> at the end of the list.
>
> Fixes: f5a4670de966 ("clk: imx: Add new clo01 and clo2 controlled by CCOSR")
> Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
Applied to clk-fixes
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-06-29 18:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-02 14:02 [PATCH v2] dt-bindings: clock: imx6ul: Do not change the clock definition order Fabio Estevam
2018-06-05 21:08 ` Rob Herring
2018-06-06 16:27 ` Stefan Agner
2018-06-06 21:56 ` Fabio Estevam
2018-06-29 18:26 ` 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).