2024-01-04 14:59:12

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [RFC 6/9] dt-bindings: vendor-prefixes: add a PCI prefix for Qualcomm Atheros

Hi,

On Thu, Jan 04, 2024 at 02:01:20PM +0100, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <[email protected]>
>
> Document the PCI vendor prefix for Qualcomm Atheros so that we can
> define the QCA PCI devices on device tree.
>
> Signed-off-by: Bartosz Golaszewski <[email protected]>
> ---
> Documentation/devicetree/bindings/vendor-prefixes.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> index 2dc098b39234..297d6037cd12 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> @@ -1128,6 +1128,7 @@ patternProperties:
> "^purism,.*":
> description: Purism, SPC
> "^qca,.*":
> + "^pci17cb,.*":

I don't think it's a good idea to list all the PCI vendor IDs
in vendor-prefixes.yaml. To please the tooling, I suggest to
have a generic entry instead. Something like this (untested):

"^pci[0-9a-f][0-9a-f][0-9a-f][0-9a-f],.*":
description: PCI SIG Vendor ID

Note, that we we already have a bunch of them:

grep -ho 'pci[0-9a-f][0-9a-f][0-9a-f][0-9a-f],' **/*.dts* | sort | uniq -c
70 pci0014,
3 pci10b5,
1 pci10ee,
6 pci14e4,
1 pci16c3,
2 pci17a0,
1 pci17cb,
1 pci1b4b,
63 pci8086,

Greetings,

-- Sebastian

> description: Qualcomm Atheros, Inc.
> "^qcom,.*":
> description: Qualcomm Technologies, Inc
> --
> 2.40.1
>
>


Attachments:
(No filename) (1.57 kB)
signature.asc (849.00 B)
Download all attachments