Re: [PATCH 5/9] media: sun6i-csi: capture: Rework and separate format validation

From: Jernej Škrabec
Date: Sat Mar 25 2023 - 03:09:42 EST


Dne petek, 24. marec 2023 ob 16:12:24 CET je Paul Kocialkowski napisal(a):
> Introduce a new sun6i_csi_capture_format_check helper to indicate
> whether a set of pixel format and mbus code are compatible.
> Most of the logic is taken from sun6i_csi_capture_link_validate,
> with extra checks added along the way.
>
> Note that v4l2_format_info is now used for all pixel formats
> since they should all be listed in the helper at this point.
>
> The motivation behind this change is to pave the way for supporting
> the mc-style enum_fmt.
>
> Signed-off-by: Paul Kocialkowski <paul.kocialkowski@xxxxxxxxxxx>

Reviewed-by: Jernej Skrabec <jernej.skrabec@xxxxxxxxx>

Best regards,
Jernej