Skip to content

Commit a2a94e7

Browse files
pebolledtor
authored andcommitted
Input: i8042 - downgrade selftest error message to dbg()
On a "really fragile" laptop I noticed a single i8042.c: i8042 controller selftest failed. (0x1 != 0x55) error in the log. But there's no reason to print this message at KERN_ERR level each time that loop fails, especially since the message telling about the overall selftest failure is printed at KERN_INFO level (on X86). Add an actual error message for non-X86 systems, where a selftest failure is (apparently) more serious. Remove a space in an another error message. Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
1 parent 7087486 commit a2a94e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/input/serio/i8042.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,15 +869,15 @@ static int i8042_controller_selftest(void)
869869
do {
870870

871871
if (i8042_command(&param, I8042_CMD_CTL_TEST)) {
872-
pr_err("i8042 controller self test timeout\n");
872+
pr_err("i8042 controller selftest timeout\n");
873873
return -ENODEV;
874874
}
875875

876876
if (param == I8042_RET_CTL_TEST)
877877
return 0;
878878

879-
pr_err("i8042 controller selftest failed. (%#x != %#x)\n",
880-
param, I8042_RET_CTL_TEST);
879+
dbg("i8042 controller selftest: %#x != %#x\n",
880+
param, I8042_RET_CTL_TEST);
881881
msleep(50);
882882
} while (i++ < 5);
883883

@@ -891,6 +891,7 @@ static int i8042_controller_selftest(void)
891891
pr_info("giving up on controller selftest, continuing anyway...\n");
892892
return 0;
893893
#else
894+
pr_err("i8042 controller selftest failed\n");
894895
return -EIO;
895896
#endif
896897
}

0 commit comments

Comments
 (0)