[PATCH] bus: mhi: host: pci_generic: Add Qualcomm SDX35 modem

Krishna Chaitanya Chundru posted 1 patch 2 weeks ago
drivers/bus/mhi/host/pci_generic.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
[PATCH] bus: mhi: host: pci_generic: Add Qualcomm SDX35 modem
Posted by Krishna Chaitanya Chundru 2 weeks ago
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>
---
 drivers/bus/mhi/host/pci_generic.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
index e3bc737313a2f0658bc9b9c4f7d85258aec2474c..138ab21d9685f234f1de39668a9821cc449b74b1 100644
--- a/drivers/bus/mhi/host/pci_generic.c
+++ b/drivers/bus/mhi/host/pci_generic.c
@@ -423,6 +423,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",
@@ -925,6 +935,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),

---
base-commit: c072629f05d7bca1148ab17690d7922a31423984
change-id: 20260123-mhi_sdx35-97c95a559ad9

Best regards,
-- 
Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Re: [PATCH] bus: mhi: host: pci_generic: Add Qualcomm SDX35 modem
Posted by Konrad Dybcio 2 weeks ago
On 1/23/26 12:46 PM, Krishna Chaitanya Chundru wrote:
> 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
          ^ this looks like a separate bug to fix

see e.g. qcom_fixup_class in drivers/pci/controller/dwc/pcie-qcom.c

Konrad