mirror of https://gitee.com/openkylin/linux.git
4a43d686fe
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
address.c | ||
base.c | ||
device.c | ||
fdt.c | ||
irq.c | ||
of_mdio.c | ||
of_mtd.c | ||
of_net.c | ||
of_pci.c | ||
of_pci_irq.c | ||
of_private.h | ||
of_reserved_mem.c | ||
pdt.c | ||
platform.c | ||
selftest.c |