diff options
author | Tomasz Figa <tomasz.figa@gmail.com> | 2013-09-28 21:52:51 +0400 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2013-10-15 23:09:20 +0400 |
commit | 4a43d686fe336cc0e955c4400ba4d3fcff788786 (patch) | |
tree | e5fb41a497d042eeec41fb4d0f654e038315e1f5 /include/linux/of_irq.h | |
parent | 8804827b305dbc1c6e24f2b36f1df4a9856b80e8 (diff) | |
download | linux-4a43d686fe336cc0e955c4400ba4d3fcff788786.tar.xz |
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>
Diffstat (limited to 'include/linux/of_irq.h')
0 files changed, 0 insertions, 0 deletions