Ok to call disable_irq before request_irq?

From: Timur Tabi
Date: Mon Apr 04 2011 - 20:54:50 EST


Is it okay to call disable_irq() before calling request_irq()? My
device creates lots of spurious interrupts, and so I want the
interrupt enable only when I expect a real interrupt to occur. It
seems to work, but I just want to make sure it's a proper technique.

--
Timur Tabi
Linux kernel developer at Freescale
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/