]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Mirror irq trigger type bits in irq_data.state
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Feb 2011 16:28:12 +0000 (17:28 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 19 Feb 2011 11:58:20 +0000 (12:58 +0100)
commit6933d4ba3825e2cdeab048402d6363c917be3465
tree9be1e7e4cd4a4c9fadd98a9ac637020417215521
parenta0383ad53b18fb1c0e08ef539a28c33ab7f2a7c1
genirq: Mirror irq trigger type bits in irq_data.state

That's the data structure chip functions get provided. Also allow them
to signal the core code that they updated the flags in irq_data.state
by returning IRQ_SET_MASK_OK_NOCOPY. The default is unchanged.

The type bits should be accessed via:

val = irqd_get_trigger_type(irqdata);
and
irqd_set_trigger_type(irqdata, val);

Coders who access them directly will be tracked down and slapped with
stinking trouts.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq.h
kernel/irq/chip.c
kernel/irq/manage.c
kernel/irq/resend.c
kernel/irq/settings.h