linux/drivers/pci
Bharat Kumar Gogada 9a181e1093 PCI: xilinx-nwl: Modify IRQ chip for legacy interrupts
- Add spinlock for protecting legacy mask register

- Few wifi end points which only support legacy interrupts, performs
  hardware reset functionalities after disabling interrupts by invoking
  disable_irq() and then re-enable using enable_irq(), they enable hardware
  interrupts first and then virtual IRQ line later.

- The legacy IRQ line goes low only after DEASSERT_INTx is received.  As
  the legacy IRQ line is high immediately after hardware interrupts are
  enabled but virq of EP is still in disabled state and EP handler is never
  executed resulting no DEASSERT_INTx.  If dummy IRQ chip is used,
  interrupts are not masked and system hangs with CPU stall.

- Add IRQ chip functions instead of dummy IRQ chip for legacy interrupts.

- Legacy interrupts are level sensitive, so using handle_level_irq() is
  more appropriate as it is masks interrupts until Endpoint handles
  interrupts and unmasks interrupts after Endpoint handler is executed.

- Legacy interrupts are level triggered, virtual IRQ line of EndPoint shows
  as edge in /proc/interrupts.

- Set IRQ flags of virtual IRQ line of EP to level triggered at the time of
  mapping.

Signed-off-by: Bharat Kumar Gogada <bharatku@xilinx.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2017-07-02 18:47:39 -05:00
..
dwc PCI: designware: Drop pci_fixup_irqs() 2017-07-02 16:51:18 -05:00
endpoint
host PCI: xilinx-nwl: Modify IRQ chip for legacy interrupts 2017-07-02 18:47:39 -05:00
hotplug
pcie
switch
access.c
ats.c
bus.c
ecam.c
host-bridge.c
hotplug-pci.c
htirq.c
iov.c
irq.c
Kconfig
Makefile PCI: Build setup-irq.o on all arches 2017-07-02 16:14:27 -05:00
mmap.c
msi.c
of.c
pci-acpi.c
pci-driver.c PCI: Add a call to pci_assign_irq() in pci_device_probe() 2017-07-02 16:14:28 -05:00
pci-label.c
pci-mid.c
pci-stub.c
pci-sysfs.c
pci.c
pci.h
probe.c PCI: Remove pci_scan_root_bus_msi() 2017-07-02 16:14:27 -05:00
proc.c
quirks.c
remove.c
rom.c
search.c
setup-bus.c
setup-irq.c PCI: Add pci_assign_irq() function and have pci_fixup_irqs() use it 2017-07-02 16:14:28 -05:00
setup-res.c
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c