Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: cec-adap.c: log when claiming LA fails unexpectedly

If there is a hardware problem such as someone pulling the CEC line low
continuously, then the POLL message will fail with an error other than
OK, NACK, ABORTED or TIMEOUT. Log the tx_status value in that case to
help debug this.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
691c3db0 b9629c55

+4 -1
+4 -1
drivers/media/cec/core/cec-adap.c
··· 1309 1309 * we assume that something is really weird and that it is not a 1310 1310 * good idea to try and claim this logical address. 1311 1311 */ 1312 - if (i == max_retries) 1312 + if (i == max_retries) { 1313 + dprintk(0, "polling for LA %u failed with tx_status=0x%04x\n", 1314 + log_addr, msg.tx_status); 1313 1315 return 0; 1316 + } 1314 1317 1315 1318 /* 1316 1319 * Message not acknowledged, so this logical