OSDN Git Service

[media] pulse8-cec: serialize communication with adapter
authorJohan Fjeldtvedt <jaffe1@gmail.com>
Mon, 22 Aug 2016 09:04:52 +0000 (06:04 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Sep 2016 19:28:51 +0000 (16:28 -0300)
commit05f3e58b8633590b1319db22646dd78ba6de2660
tree1ae077afb89a79930d64681aa0f3ec2e7073a8bb
parenta2fdc9df5e02ac3ab91d7888372cbe9512273171
[media] pulse8-cec: serialize communication with adapter

Make sending messages to the adapter serialized within the driver.

send_and_wait is split into send_and_wait_once, which only sends once
and checks for the result, and the higher level send_and_wait, which
performs locking and retries.

Signed-off-by: Johan Fjeldtvedt <jaffe1@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/pulse8-cec/pulse8-cec.c