media: cec-pin: only enable interrupts when monitoring the CEC pin
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 7 Jul 2023 11:26:41 +0000 (13:26 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:32 +0000 (07:58 +0200)
commit2f4d3718cc92d8c200a7f662e3afbaa9b1555e08
tree0b5320459cf38bad7427d3b622ff648b37950365
parentbbe9cfc713f651b8ba7e38e91863896e7abf3032
media: cec-pin: only enable interrupts when monitoring the CEC pin

The CEC interrupt is only needed if userspace wants to monitor
the CEC pin for an unconfigured CEC device. That gives it the
most precise CEC pin debugging results.

This avoids a corner case where the interrupt is enabled for
a short period when the adapter is about to be configured.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/cec/core/cec-pin.c