From: Bjorn Helgaas <helgaas@kernel.org>
To: Vladimir Oltean <vladimir.oltean@nxp.com>
Cc: linux-pci@vger.kernel.org, Bjorn Helgaas <bhelgaas@google.com>,
linux-kernel@vger.kernel.org, Wasim Khan <wasim.khan@nxp.com>,
Wei Fang <wei.fang@nxp.com>, Clark Wang <xiaoning.wang@nxp.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH pci] PCI: remove the PCI_VENDOR_ID_NXP alias
Date: Wed, 29 Nov 2023 17:38:27 -0600 [thread overview]
Message-ID: <20231129233827.GA444332@bhelgaas> (raw)
In-Reply-To: <20231122154241.1371647-1-vladimir.oltean@nxp.com>
[+cc Greg because these mergers & spinoffs happen all the time, and
pci_ids.h doesn't necessarily need to keep up, so maybe there's
precedent for what to do here]
On Wed, Nov 22, 2023 at 05:42:41PM +0200, Vladimir Oltean wrote:
> What is today NXP is the result of some mergers (with Freescale) and
> spin-offs (from Philips).
>
> New NXP hardware (for example NETC version 4.1 of the NXP i.MX95
> SoC) uses PCI_VENDOR_ID_PHILIPS. And some older hardware uses
> PCI_VENDOR_ID_FREESCALE.
>
> If we have PCI_VENDOR_ID_NXP as an alias for PCI_VENDOR_ID_FREESCALE,
> we end up needing something like a PCI_VENDOR_ID_NXP2 alias for
> PCI_VENDOR_ID_PHILIPS. I think this is more confusing than just spelling
> out the vendor ID of the original company that claimed it.
>
> FWIW, the pci.ids repository as of today has:
> 1131 Philips Semiconductors
> 1957 Freescale Semiconductor Inc
>
> so this makes the kernel code consistent with that, and with what
> "lspci" prints.
Hmm. I can't find the 0x1957 Vendor ID here:
https://pcisig.com/membership/member-companies, which is supposed to
be the authoritative source AFAICS.
Also, that page lists 0x1131 as "NXP Semiconductors".
There's a contact email on that page if it needs updates.
I don't quite understand the goal here. The company is now called
"NXP", and this patch removes PCI_VENDOR_ID_NXP (the only instance of
"NXP" in pci_ids.h) and uses PCI_VENDOR_ID_FREESCALE (which apparently
does not exist any more)?
Why would we remove name of the current company and use the name of a
company that doesn't exist any more?
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> ---
> drivers/pci/quirks.c | 50 ++++++++++++++++++++---------------------
> include/linux/pci_ids.h | 1 -
> 2 files changed, 25 insertions(+), 26 deletions(-)
>
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
> index d208047d1b8f..c95701e36d58 100644
> --- a/drivers/pci/quirks.c
> +++ b/drivers/pci/quirks.c
> @@ -5092,39 +5092,39 @@ static const struct pci_dev_acs_enabled {
> { PCI_VENDOR_ID_ZHAOXIN, 0x3038, pci_quirk_mf_endpoint_acs },
> { PCI_VENDOR_ID_ZHAOXIN, 0x3104, pci_quirk_mf_endpoint_acs },
> { PCI_VENDOR_ID_ZHAOXIN, 0x9083, pci_quirk_mf_endpoint_acs },
> - /* NXP root ports, xx=16, 12, or 08 cores */
> + /* Freescale/NXP root ports, xx=16, 12, or 08 cores */
> /* LX2xx0A : without security features + CAN-FD */
> - { PCI_VENDOR_ID_NXP, 0x8d81, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8da1, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8d83, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d81, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8da1, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d83, pci_quirk_nxp_rp_acs },
> /* LX2xx0C : security features + CAN-FD */
> - { PCI_VENDOR_ID_NXP, 0x8d80, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8da0, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8d82, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d80, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8da0, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d82, pci_quirk_nxp_rp_acs },
> /* LX2xx0E : security features + CAN */
> - { PCI_VENDOR_ID_NXP, 0x8d90, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8db0, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8d92, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d90, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8db0, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d92, pci_quirk_nxp_rp_acs },
> /* LX2xx0N : without security features + CAN */
> - { PCI_VENDOR_ID_NXP, 0x8d91, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8db1, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8d93, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d91, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8db1, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d93, pci_quirk_nxp_rp_acs },
> /* LX2xx2A : without security features + CAN-FD */
> - { PCI_VENDOR_ID_NXP, 0x8d89, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8da9, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8d8b, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d89, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8da9, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d8b, pci_quirk_nxp_rp_acs },
> /* LX2xx2C : security features + CAN-FD */
> - { PCI_VENDOR_ID_NXP, 0x8d88, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8da8, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8d8a, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d88, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8da8, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d8a, pci_quirk_nxp_rp_acs },
> /* LX2xx2E : security features + CAN */
> - { PCI_VENDOR_ID_NXP, 0x8d98, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8db8, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8d9a, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d98, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8db8, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d9a, pci_quirk_nxp_rp_acs },
> /* LX2xx2N : without security features + CAN */
> - { PCI_VENDOR_ID_NXP, 0x8d99, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8db9, pci_quirk_nxp_rp_acs },
> - { PCI_VENDOR_ID_NXP, 0x8d9b, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d99, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8db9, pci_quirk_nxp_rp_acs },
> + { PCI_VENDOR_ID_FREESCALE, 0x8d9b, pci_quirk_nxp_rp_acs },
> /* Zhaoxin Root/Downstream Ports */
> { PCI_VENDOR_ID_ZHAOXIN, PCI_ANY_ID, pci_quirk_zhaoxin_pcie_ports_acs },
> /* Wangxun nics */
> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index 275799b5f535..f837ff427b85 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -2469,7 +2469,6 @@
> #define PCI_DEVICE_ID_TDI_EHCI 0x0101
>
> #define PCI_VENDOR_ID_FREESCALE 0x1957 /* duplicate: NXP */
> -#define PCI_VENDOR_ID_NXP 0x1957 /* duplicate: FREESCALE */
> #define PCI_DEVICE_ID_MPC8308 0xc006
> #define PCI_DEVICE_ID_MPC8315E 0x00b4
> #define PCI_DEVICE_ID_MPC8315 0x00b5
> --
> 2.34.1
>
next prev parent reply other threads:[~2023-11-29 23:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 15:42 [PATCH pci] PCI: remove the PCI_VENDOR_ID_NXP alias Vladimir Oltean
2023-11-29 23:38 ` Bjorn Helgaas [this message]
2023-11-30 11:10 ` Greg Kroah-Hartman
2023-12-03 15:16 ` Vladimir Oltean
2023-12-03 17:30 ` Greg Kroah-Hartman
2023-12-03 17:48 ` Vladimir Oltean
2023-12-03 17:59 ` Greg Kroah-Hartman
2023-12-03 18:15 ` Vladimir Oltean
2023-12-03 15:15 ` Vladimir Oltean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231129233827.GA444332@bhelgaas \
--to=helgaas@kernel.org \
--cc=bhelgaas@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=vladimir.oltean@nxp.com \
--cc=wasim.khan@nxp.com \
--cc=wei.fang@nxp.com \
--cc=xiaoning.wang@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.