acrn-kernel/drivers/media/cec/core
Hans Verkuil f9222f8ca1 media: cec-adap.c: drop activate_cnt, use state info instead
Using an activation counter to decide when the enable or disable the
cec adapter is not the best approach and can lead to race conditions.

Change this to determining the current status of the adapter, and
enable or disable the adapter accordingly.

It now only needs to be called whenever there is a chance that the
state changes, and it can handle enabling/disabling monitoring as
well if needed.

This simplifies the code and it should be a more robust approach as well.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-05-13 11:29:39 +02:00
..
Makefile
cec-adap.c media: cec-adap.c: drop activate_cnt, use state info instead 2022-05-13 11:29:39 +02:00
cec-api.c media: cec: use call_op and check for !unregistered 2022-04-24 07:40:42 +01:00
cec-core.c media: cec: add xfer_timeout_ms field 2022-04-24 07:41:06 +01:00
cec-notifier.c media: cec/core/cec-notifier: use IS_REACHABLE(CONFIG_I2C) 2021-03-22 10:24:44 +01:00
cec-pin-error-inj.c media: cec/core: clarify rx-arb-lost usage message 2021-04-06 16:08:38 +02:00
cec-pin-priv.h media: cec: use call_op and check for !unregistered 2022-04-24 07:40:42 +01:00
cec-pin.c media: cec-pin.c: don't zero work_pin_num_events in adap_enable 2022-05-13 11:27:47 +02:00
cec-priv.h media: cec: use call_op and check for !unregistered 2022-04-24 07:40:42 +01:00