summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus/Isa
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2021-05-26 17:33:29 -0500
committerRay Ni <ray.ni@intel.com>2022-10-25 15:58:27 +0800
commitdb2c22633f3c761975d8f469a0e195d8b79e1287 (patch)
tree275eefcacc08f89e910b598586feedad4f9625f2 /MdeModulePkg/Bus/Isa
parentfb493ac84ebc6860e1690770fb88183effadebfb (diff)
downloadedk2-db2c22633f3c761975d8f469a0e195d8b79e1287.tar.gz
edk2-db2c22633f3c761975d8f469a0e195d8b79e1287.tar.bz2
edk2-db2c22633f3c761975d8f469a0e195d8b79e1287.zip
Ps2KbdCtrller: Make wait for SUCCESS after BAT non-fatal
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>
Diffstat (limited to 'MdeModulePkg/Bus/Isa')
-rw-r--r--MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c b/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c
index 77dc226222..981309f8b0 100644
--- a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c
+++ b/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c
@@ -1731,13 +1731,7 @@ InitKeyboard (
//
// wait for BAT completion code
//
- mWaitForValueTimeOut = KEYBOARD_BAT_TIMEOUT;
-
- Status = KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_BAT_SUCCESS);
- if (EFI_ERROR (Status)) {
- KeyboardError (ConsoleIn, L"Keyboard self test failed!\n\r");
- goto Done;
- }
+ KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_BAT_SUCCESS);
mWaitForValueTimeOut = KEYBOARD_WAITFORVALUE_TIMEOUT;