diff options
| author | 2026-08-15 21:49:49 +0800 | |
|---|---|---|
| committer | 2026-10-04 17:32:43 +0200 | |
| commit | eb0bbd0ad679bf363387e3b8be8892cfbedabb72 (patch) | |
| tree | 95023171a32e30aa445862f2b8d5b430068b998e /scripts/Makefile.thinlto | |
| parent | media: verisilicon: rockchip: Fix leaks in init (diff) | |
media: mediatek: jpeg: retry HW selection after successful wait
wait_event_interruptible_timeout() returns a positive value when its
condition becomes true before the timeout. mtk_jpegdec_worker() treats
every nonzero result as a failure, so a normal decoder wakeup finishes
the mem2mem job as though no hardware became available.
Handle interrupted waits and exhausted timeout retries separately, and
retry hardware selection after a successful wakeup. Increment the retry
count only for actual timeouts. The encoder uses
wait_event_interruptible(), whose successful return is zero, so its
existing check is correct; leave that separate no-timeout policy
unchanged.
Fixes: dedc21500334 ("media: mtk-jpegdec: add jpeg decode worker interface")
Cc: stable@vger.kernel.org
Assisted-by: Codex:gpt-5
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
