I'm trying to develop a PCI device and I need to implement a legacy interrupt (not MSI or MSIX). I followed the example of edu.c
but the IRQ is still raised when I load my driver.
I tried to look at other devices but no luck. Here is my code :
static void xxx_pci_realize(...)
{
// ....
pci_config_set_interrupt_pin(pci_conf, 1);
pci_set_irq(pdev, 0);
// ....
}
Does anyone have any idea of what is incorrect ? Thank you !