]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: wilc1000: avoid twice IRQ handler execution for each single interrupt
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 10 Sep 2019 07:46:07 +0000 (07:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Sep 2019 09:37:26 +0000 (10:37 +0100)
commit9a4c56be67f8153d8f8459c4c7bbbbc360d5fe9e
tree36d7f29a0a978dbb8440ed3b28855c84b0ffe6f5
parenta76e712a5a09977354498bb842b3807a499c76fa
staging: wilc1000: avoid twice IRQ handler execution for each single interrupt

The IRQ handler(isr_bh_routine()) was called twice for each interrupt
from firmware. The data was read completely during the first call and
the second call was doing nothing.
Now changed the IRQ flag from ‘level’ to ‘edge’ trigger i.e
IRQF_TRIGGER_LOW to IRQF_TRIGGER_FALLING to avoid extra interrupt
trigger.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20190910074514.3073-2-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_netdev.c