alistair23-linux/drivers/of
Tomasz Figa 4a43d686fe of/irq: Pass trigger type in IRQ resource flags
Some drivers might rely on availability of trigger flags in IRQ
resource, for example to configure the hardware for particular interrupt
type. However current code creating IRQ resources from data in device
tree does not configure trigger flags in resulting resources.

This patch tries to solve the problem, based on the fact that
irq_of_parse_and_map() configures the trigger based on DT interrupt
specifier and IRQD_TRIGGER_* flags are consistent with IORESOURCE_IRQ_*,
and we can get correct trigger flags by calling irqd_get_trigger_type()
after mapping the interrupt.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
[grant.likely: Merged the two assignments to r->flags]
Signed-off-by: Grant Likely <grant.likely@linaro.org>
2013-10-15 20:09:20 +01:00
..
address.c of: Fix dereferencing node name in debug output to be safe 2013-10-15 20:09:19 +01:00
base.c of: Fix iteration bug over CPU reg properties 2013-10-15 20:09:18 +01:00
device.c of: Output devicetree alias names in uevent 2013-02-06 11:06:35 +00:00
fdt.c Device tree core updates for v3.12 2013-09-10 13:53:52 -07:00
irq.c of/irq: Pass trigger type in IRQ resource flags 2013-10-15 20:09:20 +01:00
Kconfig Merge branch 'for-v3.12' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping 2013-09-09 10:26:33 -07:00
Makefile Merge branch 'for-v3.12' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping 2013-09-09 10:26:33 -07:00
of_mdio.c net: of_mdio: fix behavior on missing phy device 2013-05-08 13:13:29 -07:00
of_mtd.c of: mtd: nuke useless const qualifier 2012-07-10 10:32:06 -05:00
of_net.c of: Make of_get_phy_mode() return int i.s.o. const int 2013-08-28 20:50:19 +01:00
of_pci.c of: pci: add registry of MSI chips 2013-08-12 15:27:01 +00:00
of_pci_irq.c OF: PCI: const usage needed by MIPS 2012-05-21 14:31:48 +01:00
of_private.h of: Output devicetree alias names in uevent 2013-02-06 11:06:35 +00:00
of_reserved_mem.c drivers: of: fix build break if asm/dma-contiguous.h is missing 2013-09-10 15:43:40 +02:00
pdt.c open firmware: "/aliasas" -> "/aliases" 2013-06-18 13:46:26 +02:00
platform.c Device tree core updates for v3.12 2013-09-10 13:53:52 -07:00
selftest.c of: Create function for counting number of phandles in a property 2013-02-13 10:09:31 +00:00