diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-12 13:32:18 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-17 12:50:05 +0300 |
commit | ee2d243d6beea21e79631fa3442e92ad0fa11a6a (patch) | |
tree | 1fb02a176ae653ffccd798831558174a44336d90 /drivers/slimbus/slimbus.h | |
parent | ca33f8f61a6e4376cc006b713a353e7200e66f59 (diff) | |
download | linux-ee2d243d6beea21e79631fa3442e92ad0fa11a6a.tar.xz |
media: st_rc: Don't stay on an IRQ handler forever
As warned by smatch:
drivers/media/rc/st_rc.c:110 st_rc_rx_interrupt() warn: this loop depends on readl() succeeding
If something goes wrong at readl(), the logic will stay there
inside an IRQ code forever. This is not the nicest thing to
do :-)
So, add a timeout there, preventing staying inside the IRQ
for more than 10ms.
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/slimbus/slimbus.h')
0 files changed, 0 insertions, 0 deletions