All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cec tools: exit when CEC device is disconnected
@ 2016-08-24 10:31 Johan Fjeldtvedt
  2016-08-24 10:31 ` [PATCH] cec tools: exit if " Johan Fjeldtvedt
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Fjeldtvedt @ 2016-08-24 10:31 UTC (permalink / raw)
  To: linux-media; +Cc: Johan Fjeldtvedt

When devices are disconnected, -EIO is currently returned by ioctl, but
this will be replaced by -ENODEV. When ioctl returns that, there is no
reason to let cec-ctl, cec-follower or cec-compliance run, so just exit
them.

This patch must be applied when the CEC framework has been changed to return
ENODEV instead of EIO when devices are disconnected.

Johan Fjeldtvedt (1):
  cec tools: exit if device is disconnected

 utils/cec-compliance/cec-compliance.h |  9 +++++++--
 utils/cec-ctl/cec-ctl.cpp             |  7 ++++++-
 utils/cec-follower/cec-processing.cpp | 14 ++++++++++++--
 3 files changed, 25 insertions(+), 5 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-24 10:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-24 10:31 [PATCH] cec tools: exit when CEC device is disconnected Johan Fjeldtvedt
2016-08-24 10:31 ` [PATCH] cec tools: exit if " Johan Fjeldtvedt
2016-08-24 10:47   ` Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.