Skip to content

Commit 376358b

Browse files
SlarkXiaoManivannan Sadhasivam
authored andcommitted
bus: mhi: host: pci_generic: Add support for all Foxconn T99W696 SKU variants
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 <[email protected]> [mani: reworded subject/description and dropped the fixes tag] Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 8f5ae30 commit 376358b

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

drivers/bus/mhi/host/pci_generic.c

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -917,20 +917,8 @@ static const struct pci_device_id mhi_pci_id_table[] = {
917917
/* Telit FE990A */
918918
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, 0x1c5d, 0x2015),
919919
.driver_data = (kernel_ulong_t) &mhi_telit_fe990a_info },
920-
/* Foxconn T99W696.01, Lenovo Generic SKU */
921-
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe142),
922-
.driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
923-
/* Foxconn T99W696.02, Lenovo X1 Carbon SKU */
924-
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe143),
925-
.driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
926-
/* Foxconn T99W696.03, Lenovo X1 2in1 SKU */
927-
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe144),
928-
.driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
929-
/* Foxconn T99W696.04, Lenovo PRC SKU */
930-
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe145),
931-
.driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
932-
/* Foxconn T99W696.00, Foxconn SKU */
933-
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, 0xe146),
920+
/* Foxconn T99W696, all variants */
921+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0308, PCI_VENDOR_ID_FOXCONN, PCI_ANY_ID),
934922
.driver_data = (kernel_ulong_t) &mhi_foxconn_t99w696_info },
935923
{ PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0308),
936924
.driver_data = (kernel_ulong_t) &mhi_qcom_sdx65_info },

0 commit comments

Comments
 (0)