linux/drivers/media/cec
Hans Verkuil 0294e24750 media: cec: core: add adap_unconfigured() callback
[ Upstream commit 948a77aaec ]

The adap_configured() callback was called with the adap->lock mutex
held if the 'configured' argument was false, and without the adap->lock
mutex held if that argument was true.

That was very confusing, and so split this up in a adap_unconfigured()
callback and a high-level configured() callback.

This also makes it easier to understand when the mutex is held: all
low-level adap_* callbacks are called with the mutex held. All other
callbacks are called without that mutex held.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: f1b5716430 ("media: cec: add optional adap_configured callback")
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-09-13 09:42:54 +02:00
..
core media: cec: core: add adap_unconfigured() callback 2023-09-13 09:42:54 +02:00
i2c media: cec: i2c: ch7322: also select REGMAP 2023-07-19 16:22:00 +02:00
platform media: platform: cros-ec: Add Kuldax to the match table 2022-09-24 08:55:23 +02:00
usb media: pulse8-cec: handle possible ping error 2023-09-13 09:42:20 +02:00
Kconfig media: CEC: keep related menu entries together 2021-10-05 09:39:32 +02:00
Makefile media: cec: i2c: ch7322: Add ch7322 CEC controller driver 2020-07-04 12:16:18 +02:00