]> err.no Git - linux-2.6/commit
Input: i8042 - restore control register when enabling port fails
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 18 Jul 2007 05:20:41 +0000 (01:20 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Wed, 18 Jul 2007 05:20:41 +0000 (01:20 -0400)
commit018db6bb0d726c3683a5e1eb4621e728965db94c
treeecaca2bab01ab4bb56f74975732a91e421cd86fc
parent20b3cdd6773be09f7bf52113de0d0c37da287f29
Input: i8042 - restore control register when enabling port fails

When enabling interrupts for a port fails, the interrupt enable and
port enable bits remain set in i8042_ctr. Later writes of i8042_ctr
to the hardware could accidentally retry enabling interrupts. Clear
the bits on failure.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/i8042.c