[PATCH 10/11] bus: mhi: host: pci_generic: Add support for Qualcomm Nord

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sat Nov 21 19:19:19 PST 2026


Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] bus: mhi: host: pci_generic: 0x0120 wildcard class matches
  QCOM Root Port
- [Low] bus: mhi: host: pci_generic: unsorted PID 0x0120 entry in
  mhi_pci_id_table
--

commit bf997d1ac5e3f263dea66560b3e85c9fdd9703e3
Author: Krishna Chaitanya Chundru <krishna.chundru at oss.qualcomm.com>

bus: mhi: host: pci_generic: Add support for Qualcomm Nord

This commit adds an MHI PCI device entry for the Qualcomm Nord endpoint
(device ID 0x0120), reusing the sa8775p MHI controller configuration.

> diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
> index ca9ef4aaa0140..65201ec8dc76c 100644
> --- a/drivers/bus/mhi/host/pci_generic.c
> +++ b/drivers/bus/mhi/host/pci_generic.c

[ ... ]

> @@ -966,6 +977,8 @@ static const struct mhi_pci_dev_info mhi_netprisma_fcun69_info = {
>  static const struct pci_device_id mhi_pci_id_table[] = {
>  	{PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0116),
>  		.driver_data = (kernel_ulong_t) &mhi_qcom_sa8775p_info },
> +	{PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0120),
> +		.driver_data = (kernel_ulong_t) &mhi_qcom_nord_info },
>  	/* Telit FN920C04 (sdx35) */
>  	{PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x011a, 0x1c5d, 0x2020),
>  		.driver_data = (kernel_ulong_t) &mhi_telit_fn920c04_info },

[Severity: Medium]
Does this match 17cb:0120 PCIe Root Ports in addition to the Nord MHI
endpoint?

Device ID 0x0120 is also used by Qualcomm Root Ports:

drivers/pci/quirks.c:pci_dev_acs_enabled() {
    ...
	/* QCOM Glymur root port */
	{ PCI_VENDOR_ID_QCOM, 0x0120, pci_quirk_qcom_rp_acs },
    ...
}

Because PCI_DEVICE() leaves .class and .class_mask at 0, udev autoloads
mhi_pci_generic for 17cb:0120 Root Ports, and if pcieport is not bound
(for example with CONFIG_PCIEPORTBUS=n or pcie_ports=compat),
mhi_pci_probe() binds to the Root Port bridge and tries to map BAR 1 as
MHI registers.  Should this entry restrict .class and .class_mask to
match nord_header's PCI_CLASS_OTHERS?

[Severity: Low]
This isn't a bug, but the comment above mhi_pci_id_table asks to keep the
entries sorted by PID, so 0x0120 should go after the 0x011a entries.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261122-nord_ep-v1-0-6d8839ffa9aa@oss.qualcomm.com?part=10



More information about the linux-phy mailing list