• Paul Burton's avatar
    PCI: xilinx: Unify INTx & MSI interrupt decode · d0b5dda6
    Paul Burton authored
    The INTx & MSI interrupt decode paths duplicated a fair bit of common
    functionality. They also strictly handled interrupts in order of INTx then
    MSI, so if both types of interrupt were to be asserted simultaneously and
    the MSI interrupt were first in the FIFO then the INTx code would read it &
    ignore it before the MSI code then had to read it again, wasting the
    original FIFO read.
    
    Unify the INTx & MSI decode in order to reduce that duplication & allow a
    single FIFO read to be performed for each interrupt regardless of its type.
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    Cc: Bharat Kumar Gogada <bharatku@xilinx.com>
    Cc: Michal Simek <michal.simek@xilinx.com>
    Cc: Ravikiran Gummaluri <rgummal@xilinx.com>
    d0b5dda6
pcie-xilinx.c 17.7 KB