Re: [PATCH v3] PCI: Relabel JHL6540 on Lenovo X1 Carbon 7,8

From: Dmitry Torokhov
Date: Wed Dec 20 2023 - 17:07:29 EST


On Wed, Dec 20, 2023 at 03:28:32PM -0500, Esther Shimanovich wrote:
> +
> +/*
> + * We also need to relabel the root port as a consequence of changing
> + * the JHL6540's PCIE hierarchy.
> + */
> +static void carbon_X1_fixup_rootport_not_removable(struct pci_dev *dev)
> +{
> + if (!dmi_match(DMI_PRODUCT_FAMILY, "ThinkPad X1 Carbon 7th") &&
> + !dmi_match(DMI_PRODUCT_FAMILY, "ThinkPad X1 Carbon Gen 8"))
> + return;

Sorry I did not mention this earlier, but can these checks also be done
based on vendor/product/subvendor/subproduct IDs?

Thanks.

--
Dmitry