search for: irqen

Displaying 2 results from an estimated 2 matches for "irqen".

Did you mean: irgen
2007 Sep 10
1
[PATCH] input: Fix interrupt enable in i8042_ctr when enabling interrupt fails
...nd register both IRQs right away instead of waiting for a driver to attach to a port. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Steven pointed out to me that it changes behavior when enabling IRQ fails. The old code enabled IRQs this way: i8042_ctr |= port->irqen; if (i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR)) { i8042_ctr &= ~port->irqen; return -1; } i8042_ctr shadows the 8042's CTR. So, when enabling fails, the bit is cleared in the shadow. The new code does not clear the bit on the error path: static int i8042_enable_kbd_por...
2007 Sep 10
1
[PATCH] input: Fix interrupt enable in i8042_ctr when enabling interrupt fails
...nd register both IRQs right away instead of waiting for a driver to attach to a port. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Steven pointed out to me that it changes behavior when enabling IRQ fails. The old code enabled IRQs this way: i8042_ctr |= port->irqen; if (i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR)) { i8042_ctr &= ~port->irqen; return -1; } i8042_ctr shadows the 8042's CTR. So, when enabling fails, the bit is cleared in the shadow. The new code does not clear the bit on the error path: static int i8042_enable_kbd_por...