]> xenbits.xensource.com Git - 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)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 11 Feb 2017 17:13:03 +0000 (12:13 -0500)
commitdbf9dd27f3aefc171839d60c188134da8ad3089d
treebfcc8507a87539376e0bc9457c84f6c12d7b51b8
parent970af16e6e5a6cb8de6b6658663b8adc00d25b8b
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>
src/hw/ps2port.c