Re: appending strings to label refs

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



On 10/30/18 11:54 AM, Rob Herring wrote:
> I found (via schema checks!) a couple of errors with stdout-path values:
> 
> arch/arm/boot/dts/imx53-ppd.dts:                stdout-path = "&uart1:115200n8";
> arch/arm/boot/dts/vf610m4-colibri.dts:          stdout-path = "&uart2";
> 
> Since they are quoted, there is no resolving the label ref to a path
> string. The second case is easily fixed by dropping the quotes. The
> first case is not other than switching to an alias. So should it be
> supported in some form? Perhaps a syntax like this:
> 
> stdout-path = &uart1 ":115200n8";
> 
> If that's supported, then should this be:
> 
> stdout-path = "/a/path/to/a/node" ":115200n8";
> 
> The downside to allowing this is a missing comma between 2 strings
> would no longer fail.
> 
> Thoughts?
> 
> Rob
> 

A string concatenate operator would be a more expected syntax to me.

But I do not know whether that would be trivial to implement or
complicated.

-Frank



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

  Powered by Linux