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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Guido Aulisi <guido.aulisi@xxxxxxxxx>

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@xxxxxxxxx>
---
 drivers/input/serio/i8042.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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);
-- 
2.20.1




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux