]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bus: mhi: host: pci_generic: Add SRIOV support
authorVivek Pernamitta <quic_vpernami@quicinc.com>
Fri, 12 Sep 2025 12:48:07 +0000 (18:18 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Fri, 19 Sep 2025 05:53:05 +0000 (11:23 +0530)
pci_sriov_configure_simple() will enable or disable SR-IOV for devices
that don't require any specific PF setup before enabling SR-IOV.

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

index 6fa16975e320212a50e0b68ddb34db5ce711589c..6d0bade288265d9fdab8555c089c9153b642454f 100644 (file)
@@ -1685,7 +1685,8 @@ static struct pci_driver mhi_pci_driver = {
        .remove         = mhi_pci_remove,
        .shutdown       = mhi_pci_shutdown,
        .err_handler    = &mhi_pci_err_handler,
-       .driver.pm      = &mhi_pci_pm_ops
+       .driver.pm      = &mhi_pci_pm_ops,
+       .sriov_configure = pci_sriov_configure_simple,
 };
 module_pci_driver(mhi_pci_driver);