]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
bus: mhi: host: pci_generic: Add support for all Foxconn T99W696 SKU variants
authorSlark Xiao <slark_xiao@163.com>
Tue, 19 Aug 2025 02:00:13 +0000 (10:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:14 +0000 (15:37 -0500)
[ Upstream commit 376358bb9770e5313d22d8784511497096cdb75f ]

Since there are too many variants available for Foxconn T99W696 modem, and
they all share the same configuration, use PCI_ANY_ID as the subsystem
device ID to match each possible SKUs and support all of them.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
[mani: reworded subject/description and dropped the fixes tag]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20250819020013.122162-1-slark_xiao@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bus/mhi/host/pci_generic.c

index 4edb5bb476baf02af02aed00be0d6bacf9e92634..4564e2528775ed9f4ee6fe3dcbb2cd90b1966016 100644 (file)
@@ -917,20 +917,8 @@ static const struct pci_device_id mhi_pci_id_table[] = {
        /* Telit FE990A */
        { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, 0x1c5d, 0x2015),
                .driver_data = (kernel_ulong_t) &mhi_telit_fe990a_info },
-       /* Foxconn T99W696.01, Lenovo Generic SKU */
-       { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe142),
-               .driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
-       /* Foxconn T99W696.02, Lenovo X1 Carbon SKU */
-       { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe143),
-               .driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
-       /* Foxconn T99W696.03, Lenovo X1 2in1 SKU */
-       { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe144),
-               .driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
-       /* Foxconn T99W696.04, Lenovo PRC SKU */
-       { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe145),
-               .driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
-       /* Foxconn T99W696.00, Foxconn SKU */
-       { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe146),
+       /* Foxconn T99W696, all variants */
+       { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, PCI_ANY_ID),
                .driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
        { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0308),
                .driver_data = (kernel_ulong_t) &mhi_qcom_sdx65_info },