/* Oneshot interrupts keep the irq line masked until the threaded handler finished. unmask if the interrupt has not been disabled and is marked MASKED.  */
static void irq_finalize_oneshot(unsigned int irq, struct irq_desc *desc)
/* Oneshot interrupts keep the irq line masked until the threaded handler finished. unmask if the interrupt has not been disabled and is marked MASKED.  */
static void irq_finalize_oneshot(unsigned int irq, struct irq_desc *desc)
{
	chip_bus_lock(irq, desc);
	raw_spin_lock_irq(&desc->lock);
	if (!(desc->status & IRQ_DISABLED) && (desc->status & IRQ_MASKED)) {
		desc->status &= ~IRQ_MASKED;
		desc->chip->unmask(irq);
	}
	raw_spin_unlock_irq(&desc->lock);
	chip_bus_sync_unlock(irq, desc);
}