]> git.baikalelectronics.ru Git - kernel.git/commit
irq: Add IRQ_TYPE_DEFAULT for use by PIC drivers
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 Apr 2012 17:29:42 +0000 (17:29 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 23 Apr 2012 01:04:29 +0000 (11:04 +1000)
commitb21645665bffe935c871b8e1965f76278ed0d65b
tree250169398a74aca872c11717135f84826cbfbdad
parent04be3ec17509b74cca995b02954ab898f857c994
irq: Add IRQ_TYPE_DEFAULT for use by PIC drivers

This is meant typically to allow a PIC driver's irq domain map() callback
to establish sane defaults for the interrupt (and make sure that the HW
and the irq_desc are in sync as far as the trigger is concerned).

The irq core may not call the set_trigger callback if it thinks the
trigger is already set to the right setting, so we need to ensure new
descriptors are properly synchronized with the hardware.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
include/linux/irq.h