summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-12-11 19:22:31 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2019-12-16 14:05:37 +0300
commita67524c8bf7509fed179259cfe86a700b95b2324 (patch)
tree0601fd41b221718b893acf53a6fc232b4f62eab8 /drivers
parent58704033816210b6fd549f407a30092af5a498b0 (diff)
downloadlinux-a67524c8bf7509fed179259cfe86a700b95b2324.tar.xz
media: pulse8-cec: log when a CEC message is received
Log (if debug > 0) when a CEC message is received. This is done for transmits already, so it makes sense to do the same for receives. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/usb/pulse8-cec/pulse8-cec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/usb/pulse8-cec/pulse8-cec.c b/drivers/media/usb/pulse8-cec/pulse8-cec.c
index 17fcaf7e558a..afda438d4e0a 100644
--- a/drivers/media/usb/pulse8-cec/pulse8-cec.c
+++ b/drivers/media/usb/pulse8-cec/pulse8-cec.c
@@ -333,6 +333,10 @@ static void pulse8_irq_work_handler(struct work_struct *work)
spin_lock_irqsave(&pulse8->msg_lock, flags);
while (pulse8->rx_msg_num) {
spin_unlock_irqrestore(&pulse8->msg_lock, flags);
+ if (debug)
+ dev_info(pulse8->dev, "adap received %*ph\n",
+ pulse8->rx_msg[pulse8->rx_msg_cur_idx].len,
+ pulse8->rx_msg[pulse8->rx_msg_cur_idx].msg);
cec_received_msg(pulse8->adap,
&pulse8->rx_msg[pulse8->rx_msg_cur_idx]);
spin_lock_irqsave(&pulse8->msg_lock, flags);