ings
summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-07-17 11:40:05 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-19 13:25:32 -0300
commit11065f8531ed33d5e847a36ad64231ee599d4996 (patch)
treeb02f216395f726c0018ed0f8ffda3b5f746f2e16 /drivers
parent045344c3c1478f8d03a1a589d645fe10c3a23f77 (diff)
[media] cec: limit the size of the transmit queue
The size of the transmit queue was unlimited, which meant that in non-blocking mode you could flood the CEC adapter with messages to be transmitted. Limit this to 18 messages. Also print the number of pending transmits and the timeout value in the status debugfs file. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/media/cec/cec-adap.c33
1 files changed, 23 insertions, 10 deletions
diff --git a/drivers/staging/media/cec/cec-adap.c b/drivers/staging/media/cec/cec-adap.c