diff options
| author | Zheng Da <zhengda1936@gmail.com> | 2010-05-07 16:56:28 +0000 |
|---|---|---|
| committer | Zheng Da <zhengda1936@gmail.com> | 2010-05-07 16:56:28 +0000 |
| commit | fd11239e5a0f745cf40f954f772ed7dcdf95d018 (patch) | |
| tree | d38b4e7b7213d4cbcaf1864886f0dee4806899dc | |
| parent | 2f10589b68e536fb341335362be204a5c97e173e (diff) | |
call device_irq_enable even when interrupt is ignored.
| -rw-r--r-- | libddekit/interrupt.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libddekit/interrupt.c b/libddekit/interrupt.c index 8cf4bee1..6f7755ad 100644 --- a/libddekit/interrupt.c +++ b/libddekit/interrupt.c @@ -144,13 +144,10 @@ static void intloop(void *arg) ddekit_lock_lock (&ddekit_irq_ctrl[my_index].irqlock); if (ddekit_irq_ctrl[my_index].handle_irq > 0) { params->handler(params->priv); - /* If the irq has been disabled by the linux device, - * we don't need to reenable the real one. */ - device_irq_enable (master_device, my_index, TRUE); } - else - ddekit_printf ("not handling IRQ %x, because it is disabled.", - my_index); + /* If the irq has been disabled by the linux device, + * we don't need to reenable the real one. */ + device_irq_enable (master_device, my_index, TRUE); if (ddekit_irq_ctrl[my_index].thread_exit) { ddekit_lock_unlock (&ddekit_irq_ctrl[my_index].irqlock); |
