|
@@ -326,7 +326,7 @@ void __disable_irq(struct irq_desc *desc, unsigned int irq, bool suspend)
|
|
if (suspend) {
|
|
if (suspend) {
|
|
if (!desc->action || (desc->action->flags & IRQF_NO_SUSPEND))
|
|
if (!desc->action || (desc->action->flags & IRQF_NO_SUSPEND))
|
|
return;
|
|
return;
|
|
- desc->status |= IRQ_SUSPENDED;
|
|
|
|
|
|
+ desc->istate |= IRQS_SUSPENDED;
|
|
}
|
|
}
|
|
|
|
|
|
if (!desc->depth++)
|
|
if (!desc->depth++)
|
|
@@ -388,7 +388,7 @@ EXPORT_SYMBOL(disable_irq);
|
|
void __enable_irq(struct irq_desc *desc, unsigned int irq, bool resume)
|
|
void __enable_irq(struct irq_desc *desc, unsigned int irq, bool resume)
|
|
{
|
|
{
|
|
if (resume) {
|
|
if (resume) {
|
|
- if (!(desc->status & IRQ_SUSPENDED)) {
|
|
|
|
|
|
+ if (!(desc->istate & IRQS_SUSPENDED)) {
|
|
if (!desc->action)
|
|
if (!desc->action)
|
|
return;
|
|
return;
|
|
if (!(desc->action->flags & IRQF_FORCE_RESUME))
|
|
if (!(desc->action->flags & IRQF_FORCE_RESUME))
|
|
@@ -396,7 +396,7 @@ void __enable_irq(struct irq_desc *desc, unsigned int irq, bool resume)
|
|
/* Pretend that it got disabled ! */
|
|
/* Pretend that it got disabled ! */
|
|
desc->depth++;
|
|
desc->depth++;
|
|
}
|
|
}
|
|
- desc->status &= ~IRQ_SUSPENDED;
|
|
|
|
|
|
+ desc->istate &= ~IRQS_SUSPENDED;
|
|
}
|
|
}
|
|
|
|
|
|
switch (desc->depth) {
|
|
switch (desc->depth) {
|
|
@@ -405,7 +405,7 @@ void __enable_irq(struct irq_desc *desc, unsigned int irq, bool resume)
|
|
WARN(1, KERN_WARNING "Unbalanced enable for IRQ %d\n", irq);
|
|
WARN(1, KERN_WARNING "Unbalanced enable for IRQ %d\n", irq);
|
|
break;
|
|
break;
|
|
case 1: {
|
|
case 1: {
|
|
- if (desc->status & IRQ_SUSPENDED)
|
|
|
|
|
|
+ if (desc->istate & IRQS_SUSPENDED)
|
|
goto err_out;
|
|
goto err_out;
|
|
/* Prevent probing on this irq: */
|
|
/* Prevent probing on this irq: */
|
|
desc->status |= IRQ_NOPROBE;
|
|
desc->status |= IRQ_NOPROBE;
|