Add checking on level triggered IRQ

Signed-off-by: Carlo Caione <carlo.caione@gmail.com>