media: cec-pin: improve interrupt handling
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 7 Jul 2023 11:26:39 +0000 (13:26 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:32 +0000 (07:58 +0200)
commit9b79d776a2b3b2c6c121bd9e0faa71ba06ecd613
tree21ae3904e3f981299b220873b307b8bfe4961283
parent3b7dab49c46e3eeb40753b77c6d0aaf4a79485ad
media: cec-pin: improve interrupt handling

The CEC pin framework needs a bit more control over the interrupt
handling: make sure that the disable_irq op is called even if the
device node is unregistered, log the state of the interrupt in
debugfs, and disable the interrupt when the kernel thread is stopped.

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