From 20eae1f054a475baf86a2aade93f259b4ba5dbc0 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 10 Feb 2026 00:10:21 +0700 Subject: [PATCH] ps2d: Don't crash on keyboard scan init --- drivers/input/ps2d/src/controller.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/input/ps2d/src/controller.rs b/drivers/input/ps2d/src/controller.rs index b3c0ce0e0f..c017e52f77 100644 --- a/drivers/input/ps2d/src/controller.rs +++ b/drivers/input/ps2d/src/controller.rs @@ -356,9 +356,11 @@ impl Ps2 { { // Enable keyboard data reporting // Use inner function to prevent retries - self.keyboard_command_inner(KeyboardCommand::EnableReporting as u8)?; // Response is ignored since scanning is now on - //TODO: fix by using interrupts? + if let Err(err) = self.keyboard_command_inner(KeyboardCommand::EnableReporting as u8) { + error!("failed to initialize keyboard reporting: {:?}", err); + //TODO: fix by using interrupts? + } } // Enable clocks and interrupts