linux-sg2042/drivers/pci/endpoint
John Keeping 749aaf3372 PCI: endpoint: Use correct "end of test" interrupt
pci_epf_test_raise_irq() reads the interrupt to use for the response from
reg->command, but this has been cleared at the beginning of the command
handler so the value is always zero at this point.

Instead, extract the interrupt index before handling the command and then
pass the requested interrupt into pci_epf_test_raise_irq().  This allows us
to remove the specific code to extract the interrupt for
COMMAND_RAISE_MSI_IRQ since it is now handled in common code.

Fixes: 3ecf3232c5 ("PCI: endpoint: Do not reset *command* inadvertently")
Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
2017-09-20 13:56:06 -05:00
..
functions PCI: endpoint: Use correct "end of test" interrupt 2017-09-20 13:56:06 -05:00
Kconfig PCI: endpoint: Make PCI_ENDPOINT depend on HAS_DMA 2017-05-22 16:23:59 -05:00
Makefile PCI: endpoint: functions: Add an EP function to test PCI 2017-04-11 14:18:37 -05:00
pci-ep-cfs.c
pci-epc-core.c PCI: endpoint: Use of_dma_configure() to set initial DMA mask 2017-08-18 10:41:20 -05:00
pci-epc-mem.c PCI: endpoint: Add support for configurable page size 2017-08-29 16:00:37 -05:00
pci-epf-core.c Merge branch 'pci/misc' into next 2017-09-07 13:24:16 -05:00