@@ -89,7 +89,7 @@
#define PAB_INTX_START 5
/* supported number of MSI interrupts */
-#define PCI_NUM_MSI 16
+#define PCI_NUM_MSI 256
/* MSI registers */
#define MSI_BASE_LO_OFFSET 0x04
@@ -172,7 +172,7 @@ static bool mobiveil_pcie_valid_device(struct pci_bus *bus, unsigned int devfn)
* Do not read more than one device on the bus directly
* attached to RC
*/
- if ((bus->primary == pcie->root_bus_nr) && (devfn > 0))
+ if ((bus->number == pcie->root_bus_nr) && (devfn > 0))
return false;
return true;
The fix enables mobiveil pcie controller to detect more than one functions per device. Also increases the MSI interrupts. Fixes: 1e913e58335f ("PCI: mobiveil: Add MSI support") Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in> --- drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)