Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bus: mhi: host: Add support for separate controller configurations for VF and PF

Implement support for separate controller configurations for both
Virtual Functions (VF) and Physical Functions (PF).

This enhancement allows for more flexible and efficient management of
resources. The PF takes on a supervisory role and will have bootup
information such as SAHARA, DIAG, and NDB (for file system sync data,
etc.). VFs can handle resources associated with the main data movement
of the Function are available to the SI (system image) as per PCIe SRIOV
spec (rev 0.9 1.Architectural overview)

Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
Reviewed-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20250912-uevent_vdev_next-20250911-v4-1-fa2f6ccd301b@quicinc.com

authored by

Vivek Pernamitta and committed by
Manivannan Sadhasivam
a9e3d5a6 f5225a34

+8 -1
+8 -1
drivers/bus/mhi/host/pci_generic.c
··· 34 34 /** 35 35 * struct mhi_pci_dev_info - MHI PCI device specific information 36 36 * @config: MHI controller configuration 37 + * @vf_config: MHI controller configuration for Virtual function (optional) 37 38 * @name: name of the PCI module 38 39 * @fw: firmware path (if any) 39 40 * @edl: emergency download mode firmware path (if any) ··· 48 47 */ 49 48 struct mhi_pci_dev_info { 50 49 const struct mhi_controller_config *config; 50 + const struct mhi_controller_config *vf_config; 51 51 const char *name; 52 52 const char *fw; 53 53 const char *edl; ··· 1301 1299 return -ENOMEM; 1302 1300 1303 1301 INIT_WORK(&mhi_pdev->recovery_work, mhi_pci_recovery_work); 1302 + 1303 + if (pdev->is_virtfn && info->vf_config) 1304 + mhi_cntrl_config = info->vf_config; 1305 + else 1306 + mhi_cntrl_config = info->config; 1307 + 1304 1308 timer_setup(&mhi_pdev->health_check_timer, health_check, 0); 1305 1309 1306 - mhi_cntrl_config = info->config; 1307 1310 mhi_cntrl = &mhi_pdev->mhi_cntrl; 1308 1311 1309 1312 mhi_cntrl->cntrl_dev = &pdev->dev;