Skip to contentSkip to conversation

fpga: altera-cvp: Limit driver registration to specific device ID

PATCH Superseded Kuhanh Murugasen Krishnan 1 participant 1 message Oct 29, 2025 1 message not in the archive FPGA manager framework

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 fpga: altera-cvp: Limit driver registration to specific device ID

From: "Murugasen Krishnan, Kuhanh" <[email protected]>

The Altera CvP driver previously used PCI_ANY_ID, which caused it to bind to all PCIe devices with the Altera vendor ID. This led to incorrect driver association when multiple PCIe devices with different device IDs were present on the same platform.

Update the device ID table to use 0x00 instead of PCI_ANY_ID so that the driver only attaches to the intended device.

---
 drivers/fpga/altera-cvp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/altera-cvp.c +1 -1
index 5af0bd33890c..97e9d4d981ad 100644
@@ -560,7 +560,7 @@ static int altera_cvp_probe(struct pci_dev *pdev,
 static void altera_cvp_remove(struct pci_dev *pdev);
 
 static struct pci_device_id altera_cvp_id_tbl[] = {
-	{ PCI_VDEVICE(ALTERA, PCI_ANY_ID) },
+	{ PCI_VDEVICE(ALTERA, 0x00) },
 	{ }
 };
 MODULE_DEVICE_TABLE(pci, altera_cvp_id_tbl);
Signature · 1 line
2.25.1