Re: are node names technically case sensitive?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Aug 6, 2018 at 5:28 AM Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote:
>
>
>   while the v0.2 spec claims, in sec 2.2.1, that valid characters for
> a node name can include both upper and lower case letters, that
> section says nothing i can see about case sensitivity.

Yes, strings are case sensitive.

>   i ask since the example in the previous section uses a model value
> of "fsl,mpc8572ds", whereas the current kernel code in fact
> exclusively uses upper case for the board model name in arch/powerpc:

Examples are just examples and may not reflect actual bindings...

But we should probably fix this and not needlessly differ.

>
> $ cd arch/powerpc
> [rpjday@localhost powerpc]$ git grep -i "fsl,mpc8572ds"
> boot/dts/fsl/mpc8572ds.dts:     model = "fsl,MPC8572DS";
> boot/dts/fsl/mpc8572ds.dts:     compatible = "fsl,MPC8572DS";
> boot/dts/fsl/mpc8572ds_36b.dts: model = "fsl,MPC8572DS";
> boot/dts/fsl/mpc8572ds_36b.dts: compatible = "fsl,MPC8572DS";
> boot/dts/fsl/mpc8572ds_camp_core0.dts:  model = "fsl,MPC8572DS";
> boot/dts/fsl/mpc8572ds_camp_core0.dts:  compatible = "fsl,MPC8572DS", "fsl,MPC8572DS-CAMP";
> boot/dts/fsl/mpc8572ds_camp_core1.dts:  model = "fsl,MPC8572DS";
> boot/dts/fsl/mpc8572ds_camp_core1.dts:  compatible = "fsl,MPC8572DS", "fsl,MPC8572DS-CAMP";
> platforms/85xx/ge_imp3a.c:      if (of_machine_is_compatible("fsl,MPC8572DS-CAMP")) {
> platforms/85xx/mpc85xx_ds.c:    if (of_machine_is_compatible("fsl,MPC8572DS-CAMP")) {
> platforms/85xx/mpc85xx_ds.c:    return !!of_machine_is_compatible("fsl,MPC8572DS");
> $
>
> which means that anyone as pedentically obsessed as i am might be a
> bit unsure about case sensitivity.
>
>   thoughts?
>
> rday
>
> --
>
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                   http://crashcourse.ca/dokuwiki
>
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree-spec" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree-spec" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Photos]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]

  Powered by Linux