Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1662132 > unrolled thread

Re: [PATCH] powerpc: dts: use #include "..." to include local DT

Started byMasahiro Yamada <yamada.masahiro@socionext.com>
First post2017-06-09 11:10 +0200
Last post2017-06-14 08:50 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] powerpc: dts: use #include "..." to include local DT Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-09 11:10 +0200
    Re: [PATCH] powerpc: dts: use #include "..." to include local DT Michael Ellerman <mpe@ellerman.id.au> - 2017-06-13 12:30 +0200
      Re: [PATCH] powerpc: dts: use #include "..." to include local DT Anatolij Gustschin <agust@denx.de> - 2017-06-13 15:20 +0200
      Re: [PATCH] powerpc: dts: use #include "..." to include local DT Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-14 08:00 +0200
        Re: [PATCH] powerpc: dts: use #include "..." to include local DT Michael Ellerman <mpe@ellerman.id.au> - 2017-06-14 08:50 +0200

#1662132 — Re: [PATCH] powerpc: dts: use #include "..." to include local DT

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2017-06-09 11:10 +0200
SubjectRe: [PATCH] powerpc: dts: use #include "..." to include local DT
Message-ID<tQo5B-84n-45@gated-at.bofh.it>
Hi

(+Anatolij Gustschin <agust@denx.de>)


Ping.
I am not 100% sure who is responsible for this,
but somebody, could take a look at this patch, please?


2017-05-24 14:12 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> Most of DT files in PowerPC use #include "..." to make pre-processor
> include DT in the same directory, but we have 3 exceptional files
> that use #include <...> for that.
>
> Fix them to remove -I$(srctree)/arch/$(SRCARCH)/boot/dts path from
> dtc_cpp_flags.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
>  arch/powerpc/boot/dts/ac14xx.dts     | 2 +-
>  arch/powerpc/boot/dts/mpc5121ads.dts | 2 +-
>  arch/powerpc/boot/dts/pdm360ng.dts   | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/powerpc/boot/dts/ac14xx.dts b/arch/powerpc/boot/dts/ac14xx.dts
> index 27fcabc2f857..83bcfd865167 100644
> --- a/arch/powerpc/boot/dts/ac14xx.dts
> +++ b/arch/powerpc/boot/dts/ac14xx.dts
> @@ -10,7 +10,7 @@
>   */
>
>
> -#include <mpc5121.dtsi>
> +#include "mpc5121.dtsi"
>
>  / {
>         model = "ac14xx";
> diff --git a/arch/powerpc/boot/dts/mpc5121ads.dts b/arch/powerpc/boot/dts/mpc5121ads.dts
> index 75888ce2c792..73c30621429b 100644
> --- a/arch/powerpc/boot/dts/mpc5121ads.dts
> +++ b/arch/powerpc/boot/dts/mpc5121ads.dts
> @@ -9,7 +9,7 @@
>   * option) any later version.
>   */
>
> -#include <mpc5121.dtsi>
> +#include "mpc5121.dtsi"
>
>  / {
>         model = "mpc5121ads";
> diff --git a/arch/powerpc/boot/dts/pdm360ng.dts b/arch/powerpc/boot/dts/pdm360ng.dts
> index 0cec7244abe7..445b88114009 100644
> --- a/arch/powerpc/boot/dts/pdm360ng.dts
> +++ b/arch/powerpc/boot/dts/pdm360ng.dts
> @@ -13,7 +13,7 @@
>   * option) any later version.
>   */
>
> -#include <mpc5121.dtsi>
> +#include "mpc5121.dtsi"
>
>  / {
>         model = "pdm360ng";
> --
> 2.7.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Best Regards
Masahiro Yamada

[toc] | [next] | [standalone]


#1664718

FromMichael Ellerman <mpe@ellerman.id.au>
Date2017-06-13 12:30 +0200
Message-ID<tRRfb-6Mo-19@gated-at.bofh.it>
In reply to#1662132
Masahiro Yamada <yamada.masahiro@socionext.com> writes:

> Hi
>
> (+Anatolij Gustschin <agust@denx.de>)
>
>
> Ping.
> I am not 100% sure who is responsible for this,
> but somebody, could take a look at this patch, please?

Have you tested it actually works?

It sounds reasonable, and if it behaves as you describe there is no
change in behaviour, right?

cheers

> 2017-05-24 14:12 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
>> Most of DT files in PowerPC use #include "..." to make pre-processor
>> include DT in the same directory, but we have 3 exceptional files
>> that use #include <...> for that.
>>
>> Fix them to remove -I$(srctree)/arch/$(SRCARCH)/boot/dts path from
>> dtc_cpp_flags.
>>
>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>> ---
>>
>>  arch/powerpc/boot/dts/ac14xx.dts     | 2 +-
>>  arch/powerpc/boot/dts/mpc5121ads.dts | 2 +-
>>  arch/powerpc/boot/dts/pdm360ng.dts   | 2 +-
>>  3 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/powerpc/boot/dts/ac14xx.dts b/arch/powerpc/boot/dts/ac14xx.dts
>> index 27fcabc2f857..83bcfd865167 100644
>> --- a/arch/powerpc/boot/dts/ac14xx.dts
>> +++ b/arch/powerpc/boot/dts/ac14xx.dts
>> @@ -10,7 +10,7 @@
>>   */
>>
>>
>> -#include <mpc5121.dtsi>
>> +#include "mpc5121.dtsi"
>>
>>  / {
>>         model = "ac14xx";
>> diff --git a/arch/powerpc/boot/dts/mpc5121ads.dts b/arch/powerpc/boot/dts/mpc5121ads.dts
>> index 75888ce2c792..73c30621429b 100644
>> --- a/arch/powerpc/boot/dts/mpc5121ads.dts
>> +++ b/arch/powerpc/boot/dts/mpc5121ads.dts
>> @@ -9,7 +9,7 @@
>>   * option) any later version.
>>   */
>>
>> -#include <mpc5121.dtsi>
>> +#include "mpc5121.dtsi"
>>
>>  / {
>>         model = "mpc5121ads";
>> diff --git a/arch/powerpc/boot/dts/pdm360ng.dts b/arch/powerpc/boot/dts/pdm360ng.dts
>> index 0cec7244abe7..445b88114009 100644
>> --- a/arch/powerpc/boot/dts/pdm360ng.dts
>> +++ b/arch/powerpc/boot/dts/pdm360ng.dts
>> @@ -13,7 +13,7 @@
>>   * option) any later version.
>>   */
>>
>> -#include <mpc5121.dtsi>
>> +#include "mpc5121.dtsi"
>>
>>  / {
>>         model = "pdm360ng";
>> --
>> 2.7.4
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe devicetree" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
>
> -- 
> Best Regards
> Masahiro Yamada

[toc] | [prev] | [next] | [standalone]


#1664838

FromAnatolij Gustschin <agust@denx.de>
Date2017-06-13 15:20 +0200
Message-ID<tRTTH-8sf-7@gated-at.bofh.it>
In reply to#1664718
On Tue, 13 Jun 2017 20:21:45 +1000
Michael Ellerman mpe@ellerman.id.au wrote:

>Masahiro Yamada <yamada.masahiro@socionext.com> writes:
...
>> Ping.
>> I am not 100% sure who is responsible for this,
>> but somebody, could take a look at this patch, please?  
>
>Have you tested it actually works?
>
>It sounds reasonable, and if it behaves as you describe there is no
>change in behaviour, right?

yes, these dtbs build with this patch and I've tested with
mpc5121ads.dtb.

Thanks,
Anatolij

[toc] | [prev] | [next] | [standalone]


#1665450

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2017-06-14 08:00 +0200
Message-ID<tS9vv-1dT-29@gated-at.bofh.it>
In reply to#1664718
Hi.


2017-06-13 19:21 GMT+09:00 Michael Ellerman <mpe@ellerman.id.au>:
> Masahiro Yamada <yamada.masahiro@socionext.com> writes:
>
>> Hi
>>
>> (+Anatolij Gustschin <agust@denx.de>)
>>
>>
>> Ping.
>> I am not 100% sure who is responsible for this,
>> but somebody, could take a look at this patch, please?
>
> Have you tested it actually works?
>
> It sounds reasonable, and if it behaves as you describe there is no
> change in behaviour, right?


I do not have access to hardware,
but it is pretty easy to test this patch.


$ make O=foo ARCH=powerpc CROSS_COMPILE=powerpc-linux-  dts/ac14xx.dtb

gave me the DTB output.

The binary comparison matched with/without this patch,
so I am sure there is no change in behavior.

Likewise for mpc5121ads and pdm360ng.


Double-check by Anatolij was very appreciated.




-- 
Best Regards
Masahiro Yamada

[toc] | [prev] | [next] | [standalone]


#1665484

FromMichael Ellerman <mpe@ellerman.id.au>
Date2017-06-14 08:50 +0200
Message-ID<tSahQ-1IN-7@gated-at.bofh.it>
In reply to#1665450
Masahiro Yamada <yamada.masahiro@socionext.com> writes:
> 2017-06-13 19:21 GMT+09:00 Michael Ellerman <mpe@ellerman.id.au>:
>> Masahiro Yamada <yamada.masahiro@socionext.com> writes:
>>>
>>> (+Anatolij Gustschin <agust@denx.de>)
>>>
>>> Ping.
>>> I am not 100% sure who is responsible for this,
>>> but somebody, could take a look at this patch, please?
>>
>> Have you tested it actually works?
>>
>> It sounds reasonable, and if it behaves as you describe there is no
>> change in behaviour, right?
>
> I do not have access to hardware,
> but it is pretty easy to test this patch.
>
> $ make O=foo ARCH=powerpc CROSS_COMPILE=powerpc-linux-  dts/ac14xx.dtb
>
> gave me the DTB output.
>
> The binary comparison matched with/without this patch,
> so I am sure there is no change in behavior.
>
> Likewise for mpc5121ads and pdm360ng.

Thanks.

Acked-by: Michael Ellerman <mpe@ellerman.id.au>


cheers

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web