Displaying 1 result from an estimated 1 matches for "pci_irq_vecotr".
2020 Apr 26
0
[PATCH V3 2/2] vdpa: implement config interrupt in IFCVF
...apter *adapter)
> struct ifcvf_hw *vf = &adapter->vf;
> int vector, i, ret, irq;
>
> + snprintf(vf->config_msix_name, 256, "ifcvf[%s]-config\n",
> + pci_name(pdev));
> + vector = 0;
> + irq = pci_irq_vector(pdev, vector);
Nitpick, we can just use pci_irq_vecotr(pdev, 0);
vector will be reassigned soon :)
Thanks
> + ret = devm_request_irq(&pdev->dev, irq,
> + ifcvf_config_changed, 0,
> + vf->config_msix_name, vf);
>
> for (i = 0; i < IFCVF_MAX_QUEUE_PAIRS * 2; i++) {
> snprintf(vf->vring[i]....