Re: [PATCH v3] checkpatch: add missing bindings license check

From: Rob Herring
Date: Tue Mar 21 2023 - 17:54:05 EST


On Mon, Mar 20, 2023 at 11:33:50PM +0300, Dmitry Rokosov wrote:
> All headers from 'include/dt-bindings/' must be verified by checkpatch
> together with Documentation bindings, because all of them are part of
> the whole DT bindings system.
>
> The requirement is dual licensed and matching pattern:
> /GPL-2\.0(?:-only|-or-later|\+)? (?:OR|or) BSD-2-Clause/

This is not correct. The headers can and should be licensed like the dts
files which are (unfortunately) all over the place and differ from the
bindings.

Also, GPL-2.0-or-later is neither desired nor encouraged.

Rob