openwrt/target/linux/ath79
Dmitry Tunin 8132e06247 ath79: fix ar7100 PCI IRQ handling
Currently all PCI devices get the same IRQ that affects performance badly.

This commit adresses this problem and cleans the code.

ar7100 has a special PCI interrupt controller@18060018 that works exactly
the same way as misc interrupt controller.

This patch does the following:

1. Defines pci-intc interrupt controller@18060018 in dtsi.
2. Removes interrupt-controller property from PCI node.
3. Sets a correct interrupt mask for PCI devices.
4. Removes all IRQ handling code from the PCI driver.

"qca,ar7100-misc-intc" should be used as the compatible property, becuase on ar7100
the controlled status register is read-only and the ack method used in
"qca,ar7240-misc-intc" won't work properly.

There are two very minor downsides of this patch that don't affect perormance:

1. We allocate an IRQ domain of 32 IRQ, whan we need only 5. But ar7100 aren't tiny un terms of RAM
and that is not very important and can be tuned if we implement "nr-interrupts" property".

2. It reuses the same irg chip name "MISC" for both controllers.

Run tested on DIR-825 B1.

Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
2018-08-28 11:26:53 +02:00
..
base-files ath79: initial support for Ubiquiti RouterStation and RouterStation Pro 2018-08-27 19:31:17 +02:00
dts ath79: fix ar7100 PCI IRQ handling 2018-08-28 11:26:53 +02:00
files ath79: ag71xx: apply interface mode to MII0/1_CTRL on ar71xx/ar913x 2018-08-28 11:26:53 +02:00
generic ath79: initial support for Ubiquiti RouterStation and RouterStation Pro 2018-08-27 19:31:17 +02:00
image ath79: initial support for Ubiquiti RouterStation and RouterStation Pro 2018-08-27 19:31:17 +02:00
nand ath79: add initial nand support for gl-ar300m 2018-06-18 20:29:38 +02:00
patches-4.14 ath79: fix ar7100 PCI IRQ handling 2018-08-28 11:26:53 +02:00
tiny ath79: add support for TP-Link TL-WR941N/ND v2/v3 2018-08-14 10:19:37 +02:00
config-4.14 ath79: disable unused drivers for tiny target 2018-07-07 21:07:40 +02:00
Makefile ath79: add initial nand support for gl-ar300m 2018-06-18 20:29:38 +02:00
modules.mk ath79: add new OF only target for QCA MIPS silicon 2018-05-07 08:06:51 +02:00