On Thu, Oct 1, 2009 at 9:03 PM, Greg KH <greg@xxxxxxxxx> wrote:
On Thu, Oct 01, 2009 at 08:55:27PM +0530, Harinderjit Singh Sandhu wrote:The problem is in your interrupt handler:
> this is the code for the small module that i wrote
You aren't really handling the interrupt by turning it off in the
> // interrupt handler
> irqreturn_t interrupt_handler (int irqn, void *dev)
> {
>
> printk("Press a key ");
>
>
> return IRQ_HANDLED;
>
>
> }
hardware. So the kernel sees an interrupt storm for your device and
shuts it off to save the system from going crazy.
What are you trying to do with this sample module?
greg k-h
--
---------------------
Harinderjit Singh