Re: [PATCH] media: mali-c55: Serialise the ISP enable in the params and stats paths

From: Linus Walleij

Date: Mon Nov 23 2026 - 03:31:18 EST


On Sat, Nov 14, 2026 at 5:49 PM David Carlier <devnexen@xxxxxxxxx> wrote:

> Only the capture devices hold isp->capture_lock around the
> mali_c55_pipeline_ready() check and the ISP enable or disable. When the
> last two queues to start are on different video devices, both can see
> a ready pipeline and both enable the ISP. The second call fails with
> -EALREADY and its queue's start_streaming_called flag is cleared, so
> the ISP is never disabled again and every later start fails.
>
> Take capture_lock in the params and stats paths too.
>
> Fixes: d5f281f3dd29 ("media: mali-c55: Add Mali-C55 ISP driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: David Carlier <devnexen@xxxxxxxxx>

This looks reasonable, have you tested the patch on hardware?
FWIW:
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij