Skip to contentSkip to conversation

Disabling an interrupt in interrupt context

DISCUSSION Mike Mason 2 participants 2 messages Feb 24, 2009 – Feb 25, 2009

lore
Share & tools
lore

Mike Mason

author
#0 lore raw

I have a need to disable an LSI interrupt from within the context of the handler for that interrupt. It appears that disable_irq_nosync() will do the trick. Besides dropping interrupts, which I don't care about because the device is in an error state, what are the potential side effects of doing this? As far as I can tell, this will not prevent the current in-flight handlers for that interrupt from finishing.

Thanks,
Mike Mason

#1 lore raw
Quoted 1 line · Mike Mason

I have a need to disable an LSI interrupt from within the context of the handler for that interrupt. It appears that disable_irq_nosync() will do the trick. Besides dropping interrupts, which I don't care about because the device is in an error state, what are the potential side effects of doing this? As far as I can tell, this will not prevent the current in-flight handlers for that interrupt from finishing.

Well, if any other devices are sharing that IRQ line, they likely won't like it, for one thing.. How long are you planning on disabling the IRQ line for?