]> Gentwo Git Trees - linux/.git/commit
media: allegro: process all pending status mbox messages
authorMatthias Fend <matthias.fend@emfend.at>
Mon, 1 Sep 2025 15:13:37 +0000 (17:13 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 20 Oct 2025 07:23:17 +0000 (09:23 +0200)
commit62190e91b070cf5987f85dddafe82dbfb193999f
tree9d1e7d4939b763f765e13594b11e9db71d630103
parent277f507fb1ece3c2050b75594d64b050590cc82b
media: allegro: process all pending status mbox messages

Under certain circumstances, not every message written by the MCU to the
status mailbox may trigger a corresponding interrupt. This is likely when
multiple messages are generated in a very short period of time. Since the
current implementation only processes one message per interrupt, even if
multiple messages are already available in the mailbox, expected messages
are either not received or are processed late. This leads to various
subsequent problems and causes the driver to no longer function properly.

The behavior has been adjusted so that after an interrupt, all messages
available in the mailbox are processed.

Signed-off-by: Matthias Fend <matthias.fend@emfend.at>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/allegro-dvt/allegro-core.c