Re: [PATCH v2 1/1] input: ideapad_slidebar: new input driver

From
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date
2013-08-07 18:43:00
Also in
lkml
Reply to
Andrey Moiseev, 2013-08-07
Hi Andrey,

On Wed, Aug 07, 2013 at 03:25:34PM +0400, Andrey Moiseev wrote:
quoted hunk ↗ jump to hunk
+/* Keyboard handler */
+static irq_handler_t kbd_irq_handler(int irq, void *dev_id,
+                    struct pt_regs *regs)
+{
+    /* Scancodes: e03b on move, bb on release */
+    int scancode = inb(0x60);
No, you should not just read KBC data without regard to what other
parts of kernel are doing (i8042 might be accessing it at the same time
because AUX IRQ was raised).

This driver has to be implemented as i8042 filter.

Thanks.

-- 
Dmitry
Thread (2 messages) 2 messages, 2 authors, last reply 2013-08-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help