Re: [PATCH] checkpatch: Don't emit warnings for USB & PCI device DT compatible prefixes

From: Brian Norris

Date: Fri May 15 2026 - 15:41:32 EST


On Fri, May 15, 2026 at 11:24:09AM +0800, Chen-Yu Tsai wrote:
> We could import Documentation/devicetree/bindings/processed-schema.json
> and match against the compatibles and vendor prefixes from that. It
> might actually be faster (vs grepping through the entire DT bindings
> directory), but it requires the user having run make commands that
> produce it.

Personally, I would avoid having checkpatch do more duplication of
other/better tools, like the DT schema validator. I'd also avoid having
it run other tools that are not guaranteed to be easily available.

I would focus on eliminating the false positives, even if that means
making checkpatch less likely to catch omissions.

But my opinion may not be valuable.

Brian