WSL2-Linux-Kernel/drivers/pci
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
..
dwc Merge branch 'pci/trivial' into next 2017-09-07 13:24:20 -05:00
endpoint PCI: endpoint: Use correct "end of test" interrupt 2017-09-20 13:56:06 -05:00
host pci-v4.14-changes 2017-09-08 15:47:43 -07:00
hotplug Merge branch 'pci/misc' into next 2017-09-07 13:24:16 -05:00
pcie dmi: Mark all struct dmi_system_id instances const 2017-09-14 11:59:30 +02:00
switch
Kconfig
Makefile
access.c
ats.c
bus.c
ecam.c
host-bridge.c
hotplug-pci.c
htirq.c
iov.c
irq.c
mmap.c
msi.c pci-v4.14-changes 2017-09-08 15:47:43 -07:00
of.c
pci-acpi.c
pci-driver.c ACPI updates for v4.14-rc1 2017-09-05 12:45:03 -07:00
pci-label.c
pci-mid.c
pci-stub.c
pci-sysfs.c Merge branch 'pci/trivial' into next 2017-09-07 13:24:20 -05:00
pci.c Revert "PCI: Avoid race while enabling upstream bridges" 2017-09-15 01:33:51 -05:00
pci.h
probe.c pci-v4.14-changes 2017-09-08 15:47:43 -07:00
proc.c
quirks.c dmi: Mark all struct dmi_system_id instances const 2017-09-14 11:59:30 +02:00
remove.c
rom.c
search.c
setup-bus.c
setup-irq.c
setup-res.c
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c