]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bus: mhi: host: pci_generic: Add Qualcomm SDX35 modem
authorKrishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Fri, 23 Jan 2026 11:46:17 +0000 (17:16 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Mon, 2 Mar 2026 07:42:24 +0000 (13:12 +0530)
Add support for sdx35 modem. Similar to SDX75, SDX35 can take longer to
transition to ready during power up, so use modem_qcom_v2_mhiv_config
configurations.

01:00.0 Unassigned class [ff00]: Qualcomm Device 011a
            Subsystem: Qualcomm Device 011a

Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260123-mhi_sdx35-v1-1-79440abf0c92@oss.qualcomm.com
drivers/bus/mhi/host/pci_generic.c

index 0884a384b77fc3f56fa62a12351933132ffc9293..425362037830ea9ef30acab748b07f04e47f3d90 100644 (file)
@@ -407,6 +407,16 @@ static const struct mhi_pci_dev_info mhi_qcom_sdx55_info = {
        .sideband_wake = false,
 };
 
+static const struct mhi_pci_dev_info mhi_qcom_sdx35_info = {
+       .name = "qcom-sdx35m",
+       .config = &modem_qcom_v2_mhiv_config,
+       .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
+       .dma_data_width = 32,
+       .mru_default = 32768,
+       .sideband_wake = false,
+       .edl_trigger = true,
+};
+
 static const struct mhi_pci_dev_info mhi_qcom_sdx24_info = {
        .name = "qcom-sdx24",
        .edl = "qcom/prog_firehose_sdx24.mbn",
@@ -909,6 +919,8 @@ static const struct pci_device_id mhi_pci_id_table[] = {
        /* Telit FN920C04 (sdx35) */
        {PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x011a, 0x1c5d, 0x2020),
                .driver_data = (kernel_ulong_t) &mhi_telit_fn920c04_info },
+       { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x011a),
+               .driver_data = (kernel_ulong_t) &mhi_qcom_sdx35_info },
        { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304),
                .driver_data = (kernel_ulong_t) &mhi_qcom_sdx24_info },
        { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0306, PCI_VENDOR_ID_QCOM, 0x010c),