]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cec: limit the size of the transmit queue
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 17 Jul 2016 14:40:05 +0000 (11:40 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Jul 2016 16:25:32 +0000 (13:25 -0300)
commit6154bac3c5a943f592f4ffbb43f927ea2c0b2a8e
treeb02f216395f726c0018ed0f8ffda3b5f746f2e16
parentd48d8c9385c66a97a02c756d09c44c52b3c994b3
[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>
drivers/staging/media/cec/cec-adap.c
include/media/cec.h