]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bus: mhi: host: pci_generic: Use unique 'mhi_pci_dev_info' for product families
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 26 Jun 2024 05:32:37 +0000 (11:02 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 1 Jul 2024 16:20:29 +0000 (21:50 +0530)
commitf08d4bdad612dcff6827f8cd2b20f13413c392d3
tree72aae991856219218a31ad1070353b169035cbbd
parentc7d0b2db5bc5e8c0fdc67b3c8f463c3dfec92f77
bus: mhi: host: pci_generic: Use unique 'mhi_pci_dev_info' for product families

Currently, a single 'mhi_pci_dev_info' is shared across different product
families. Even though it makes the device functional, it misleads the users
by sharing the common product name.

For instance, below message will be printed for Foxconn SDX62 modem during
boot:

"MHI PCI device found: foxconn-sdx65"

But this is quite misleading to the users since the actual modem plugged in
could be 'T99W373' which is based on SDX62.

So fix this issue by using a unique 'mhi_pci_dev_info' for product
families. This allows us to specify a unique product name for each product
family. Also, once this name is exposed to client drivers, they may use
this name to identify the modems and use any modem specific configuration.

Modems of unknown product families are not impacted by this change.

CC: Slark Xiao <slark_xiao@163.com>
Reviewed-by: Slark Xiao <slark_xiao@163.com>
Link: https://lore.kernel.org/r/20240626053237.4227-1-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/host/pci_generic.c