From: Hans Verkuil Date: Fri, 15 Jul 2016 14:13:49 +0000 (-0300) Subject: [media] cec: set timestamp for selfie transmits X-Git-Tag: v4.8-rc1~152^2~20 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=9a3f14ea802fd0d8848d8e16566b769e4ce09d68;p=linux.git [media] cec: set timestamp for selfie transmits Attempts to send CEC messages to yourself are detected in the framework and returned with a NACK error. However, the tx_ts was never filled in that case. So just set it. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/cec/cec-adap.c b/drivers/staging/media/cec/cec-adap.c index 07147a1d2b6b..4d86a6c9258f 100644 --- a/drivers/staging/media/cec/cec-adap.c +++ b/drivers/staging/media/cec/cec-adap.c @@ -603,6 +603,7 @@ int cec_transmit_msg_fh(struct cec_adapter *adap, struct cec_msg *msg, * easy to handle it here so the behavior will be * consistent. */ + msg->tx_ts = ktime_get_ns(); msg->tx_status = CEC_TX_STATUS_NACK | CEC_TX_STATUS_MAX_RETRIES; msg->tx_nack_cnt = 1;