summaryrefslogtreecommitdiff
path: root/kernel/irq/ipi.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2017-08-18 09:53:45 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-25 00:12:20 (GMT)
commit762ac49ccecece82aad47bb4bd661791fafac2e5 (patch)
tree729564ea9b3474d4a8127a6b96ac4c367949199c /kernel/irq/ipi.c
parent4691f1ca6fad3877a4887041d1ad5eb58117b4a2 (diff)
downloadlinux-762ac49ccecece82aad47bb4bd661791fafac2e5.tar.xz
genirq: Restore trigger settings in irq_modify_status()
commit e8f241893dfbbebe2813c01eac54f263e6a5e59c upstream. irq_modify_status starts by clearing the trigger settings from irq_data before applying the new settings, but doesn't restore them, leaving them to IRQ_TYPE_NONE. That's pretty confusing to the potential request_irq() that could follow. Instead, snapshot the settings before clearing them, and restore them if the irq_modify_status() invocation was not changing the trigger. Fixes: 1e2a7d78499e ("irqdomain: Don't set type when mapping an IRQ") Reported-and-tested-by: jeffy <jeffy.chen@rock-chips.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jon Hunter <jonathanh@nvidia.com> Link: http://lkml.kernel.org/r/20170818095345.12378-1-marc.zyngier@arm.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/irq/ipi.c')
0 files changed, 0 insertions, 0 deletions