diff mbox series

Input: i8042: Add missing dbg msg when a command can't write its parameter

Message ID 20190513225215.29925-1-guido.aulisi@gmail.com (mailing list archive)
State New, archived
Headers show
Series Input: i8042: Add missing dbg msg when a command can't write its parameter | expand

Commit Message

guido.aulisi@gmail.com May 13, 2019, 10:52 p.m. UTC
From: Guido Aulisi <guido.aulisi@gmail.com>

Commit 2ea9c2362b56 (Input: i8042 - add dbg msg when a command can't write its parameter)
forgot to add a dbg message to the first write command.

Add the missing dbg message to catch all write failures.

Signed-off-by: Guido Aulisi <guido.aulisi@gmail.com>
---
 drivers/input/serio/i8042.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
index 95a78ccbd847..0563b63094ef 100644
--- a/drivers/input/serio/i8042.c
+++ b/drivers/input/serio/i8042.c
@@ -304,8 +304,10 @@  static int __i8042_command(unsigned char *param, int command)
 		return -1;
 
 	error = i8042_wait_write();
-	if (error)
+	if (error) {
+		dbg("     -- i8042 (wait write timeout)\n");
 		return error;
+	}
 
 	dbg("%02x -> i8042 (command)\n", command & 0xff);
 	i8042_write_command(command & 0xff);