]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
ps2port: Disable keyboard/mouse prior to resetting ps2 controller
authorKevin O'Connor <kevin@koconnor.net>
Sat, 11 Feb 2017 17:13:03 +0000 (12:13 -0500)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 24 Feb 2017 14:01:12 +0000 (15:01 +0100)
commitd2ac5648f489e96d07e8e656c4ad7dda02ad0cd8
treee514e7b898d390fa68a140bf7ee78546c141b71c
parentb0e3c6761423925d51a4247cf341da7613a9dc54
ps2port: Disable keyboard/mouse prior to resetting ps2 controller

If one of the ps2 ports is enabled prior to the ps2 controller reset
then it is possible a device event (eg, key press or mouse move) could
be mistaken for the controller reset response code.  This would result
in a failure and the keyboard would be disabled during the boot.
Always disabling the keyboard and mouse prior to reset ensures that
the controller reset return code can be read properly.

Tested-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
(cherry picked from commit dbf9dd27f3aefc171839d60c188134da8ad3089d)
src/hw/ps2port.c