aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/irq/chip.c2
-rw-r--r--kernel/irq/manage.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index baa5c4acad83..9639ab8bece0 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)
65 if (type == IRQ_TYPE_NONE) 65 if (type == IRQ_TYPE_NONE)
66 return 0; 66 return 0;
67 67
68 chip_bus_lock(desc);
68 raw_spin_lock_irqsave(&desc->lock, flags); 69 raw_spin_lock_irqsave(&desc->lock, flags);
69 ret = __irq_set_trigger(desc, irq, type); 70 ret = __irq_set_trigger(desc, irq, type);
70 raw_spin_unlock_irqrestore(&desc->lock, flags); 71 raw_spin_unlock_irqrestore(&desc->lock, flags);
72 chip_bus_sync_unlock(desc);
71 return ret; 73 return ret;
72} 74}
73EXPORT_SYMBOL(set_irq_type); 75EXPORT_SYMBOL(set_irq_type);
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index ba84307fbf24..a400db220cf3 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -454,6 +454,7 @@ int set_irq_wake(unsigned int irq, unsigned int on)
454 /* wakeup-capable irqs can be shared between drivers that 454 /* wakeup-capable irqs can be shared between drivers that
455 * don't need to have the same sleep mode behaviors. 455 * don't need to have the same sleep mode behaviors.
456 */ 456 */
457 chip_bus_lock(desc);
457 raw_spin_lock_irqsave(&desc->lock, flags); 458 raw_spin_lock_irqsave(&desc->lock, flags);
458 if (on) { 459 if (on) {
459 if (desc->wake_depth++ == 0) { 460 if (desc->wake_depth++ == 0) {
@@ -476,6 +477,7 @@ int set_irq_wake(unsigned int irq, unsigned int on)
476 } 477 }
477 478
478 raw_spin_unlock_irqrestore(&desc->lock, flags); 479 raw_spin_unlock_irqrestore(&desc->lock, flags);
480 chip_bus_sync_unlock(desc);
479 return ret; 481 return ret;
480} 482}
481EXPORT_SYMBOL(set_irq_wake); 483EXPORT_SYMBOL(set_irq_wake);