diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-12 12:10:49 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 12:58:06 +0100 |
commit | 43abe43ce0619d744c7a5bb15cce075e532b53b7 (patch) | |
tree | f915103a0d1d671d2f537c7852869b7ca4a0078b /kernel/irq/chip.c | |
parent | e7bcecb7b1d29b9ad5af939149a945658620ca8f (diff) | |
download | kernel_samsung_smdk4412-43abe43ce0619d744c7a5bb15cce075e532b53b7.zip kernel_samsung_smdk4412-43abe43ce0619d744c7a5bb15cce075e532b53b7.tar.gz kernel_samsung_smdk4412-43abe43ce0619d744c7a5bb15cce075e532b53b7.tar.bz2 |
genirq: Add missing buslock to set_irq_type(), set_irq_wake()
chips behind a slow bus cannot update the chip under desc->lock, but
we miss the chip_buslock/chip_bus_sync_unlock() calls around the set
type and set wake functions.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r-- | kernel/irq/chip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index baa5c4a..9639ab8 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -65,9 +65,11 @@ int set_irq_type(unsigned int irq, unsigned int type) if (type == IRQ_TYPE_NONE) return 0; + chip_bus_lock(desc); raw_spin_lock_irqsave(&desc->lock, flags); ret = __irq_set_trigger(desc, irq, type); raw_spin_unlock_irqrestore(&desc->lock, flags); + chip_bus_sync_unlock(desc); return ret; } EXPORT_SYMBOL(set_irq_type); |