]> asedeno.scripts.mit.edu Git - linux.git/commit
media: cec-gpio: use disable/enable_irq
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 20 May 2019 14:38:40 +0000 (10:38 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 23 May 2019 09:29:00 +0000 (05:29 -0400)
commit00ccd263ee085c7428e2a1102c2f39e4a6927978
tree4823fb14bd16e04cd13642d3c324a099f0c2b143
parent354cf00339b12da6e685770e9e411ebe05d3e3a3
media: cec-gpio: use disable/enable_irq

Due to limitations in gpiolib it was impossible to disable the interrupt of
an input gpio and then switch it to gpio output and drive it. The only way
to achieve that was to free the interrupt first, then switch the direction.

When going back to gpio input and using interrupts to read the gpio pin you
had to request the irq again.

This limitation was lifted in gpiolib in kernel 4.20, but the cec-gpio driver
was still using the old workaround implementation.

This patch updates the cec-gpio driver to just enable and disable the irq.

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