]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec-pin: fix irq handling
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 16 Aug 2017 07:13:02 +0000 (03:13 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 12:15:00 +0000 (08:15 -0400)
commitf3cb8c1120d3e3fce6cff6ae6b25490d70d12c89
treeb955604c97aee25488af1724241cf15dd3ed9357
parenta1d9ec4b9d52565a628b413292dcec2d59a74c22
media: cec-pin: fix irq handling

The free_irq() function could be called from interrupt context,
which is invalid. Move this to the thread.

In the interrupt handler we just request that the thread disables
the irq. This is done through an atomic so we don't need to add
any spinlocks.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-pin.c
include/media/cec-pin.h