Skip to content
Commit 018db6bb authored by Markus Armbruster's avatar Markus Armbruster Committed by Dmitry Torokhov
Browse files

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: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 20b3cdd6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment