• Hans Verkuil's avatar
    media: cec-gpio: use disable/enable_irq · 00ccd263
    Hans Verkuil authored
    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: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
    00ccd263
cec-gpio.c 6.17 KB