]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Set irq masked state when initializing irq_desc
authorJeffy Chen <jeffy.chen@rock-chips.com>
Mon, 26 Jun 2017 11:33:33 +0000 (19:33 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 26 Jun 2017 12:05:41 +0000 (14:05 +0200)
commit6ba99a606bd60e55b91351531f0419de285f469d
tree48f7e906c28c46f4b3b9e1f90e78f627893f91a6
parent7a381adb7a2a88fe158916746999c94181d73dbd
genirq: Set irq masked state when initializing irq_desc

The irq default state is set to disabled when allocating irq desc, but the
masked state flag is not set. This is inconsistent vs. the state tracking
logic which is used to prevent unnecessary calls to hardware level irq chip
functions.

Set the masked state flag as well.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: tfiga@chromium.org
Cc: briannorris@chromium.org
Cc: dianders@chromium.org
Link: http://lkml.kernel.org/r/1498476814-12563-1-git-send-email-jeffy.chen@rock-chips.com
kernel/irq/irqdesc.c