Recent model Chromebooks only return ACK, but not
BAT_SUCCESS, which causes hanging and failed ps2k init.
To mitigate this, make the absence of BAT_SUCCESS reply
non-fatal, and reduce the no-reply timeout from 4s to 1s.
Tested on google/dracia and purism/librem_14
Acked-by: Hao A Wu <hao.a.wu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
//\r
// wait for BAT completion code\r
//\r
//\r
// wait for BAT completion code\r
//\r
- mWaitForValueTimeOut = KEYBOARD_BAT_TIMEOUT;\r
-\r
- Status = KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_BAT_SUCCESS);\r
- if (EFI_ERROR (Status)) {\r
- KeyboardError (ConsoleIn, L"Keyboard self test failed!\n\r");\r
- goto Done;\r
- }\r
+ KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_BAT_SUCCESS);\r
\r
mWaitForValueTimeOut = KEYBOARD_WAITFORVALUE_TIMEOUT;\r
\r
\r
mWaitForValueTimeOut = KEYBOARD_WAITFORVALUE_TIMEOUT;\r
\r