Re: [PATCH] dtc: checks: check_graph_port: skip node name check in overlay case

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

 



Ping!

Benoit Parrot <bparrot@xxxxxx> wrote on Fri [2019-Nov-22 13:16:31 -0600]:
> In check_graph_port() we need to skip the node name check in the overlay
> case as it causes a false positive warning.
> 
> Signed-off-by: Benoit Parrot <bparrot@xxxxxx>
> ---
>  checks.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/checks.c b/checks.c
> index 756f0fa9203f..6b6712da146a 100644
> --- a/checks.c
> +++ b/checks.c
> @@ -1707,7 +1707,8 @@ static void check_graph_port(struct check *c, struct dt_info *dti,
>  	if (node->bus != &graph_port_bus)
>  		return;
>  
> -	if (!strprefixeq(node->name, node->basenamelen, "port"))
> +	if (!strprefixeq(node->name, node->basenamelen, "port") &&
> +	    !(dti->dtsflags & DTSF_PLUGIN))
>  		FAIL(c, dti, node, "graph port node name should be 'port'");
>  
>  	check_graph_reg(c, dti, node);



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


  Powered by Linux