mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
net/ethernet: Use never-managed version of pci_intx()
pci_intx() is a hybrid function which can sometimes be managed through devres. To remove this hybrid nature from pci_intx(), it is necessary to port users to either an always-managed or a never-managed version. broadcom/bnx2x and brocade/bna enable their PCI devices with pci_enable_device(). Thus, they need the never-managed version. Replace pci_intx() with pci_intx_unmanaged(). Link: https://lore.kernel.org/r/20241209130632.132074-5-pstanner@redhat.com Signed-off-by: Philipp Stanner <pstanner@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
97fd88089f
commit
41400bc533
|
|
@ -1669,7 +1669,7 @@ static void bnx2x_igu_int_enable(struct bnx2x *bp)
|
|||
REG_WR(bp, IGU_REG_PF_CONFIGURATION, val);
|
||||
|
||||
if (val & IGU_PF_CONF_INT_LINE_EN)
|
||||
pci_intx(bp->pdev, true);
|
||||
pci_intx_unmanaged(bp->pdev, true);
|
||||
|
||||
barrier();
|
||||
|
||||
|
|
|
|||
|
|
@ -2669,7 +2669,7 @@ bnad_enable_msix(struct bnad *bnad)
|
|||
}
|
||||
}
|
||||
|
||||
pci_intx(bnad->pcidev, 0);
|
||||
pci_intx_unmanaged(bnad->pcidev, 0);
|
||||
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user