media: atomisp: Propagate v4l2_mbus_framefmt.field to CSI port sink pad
authorHans de Goede <hdegoede@redhat.com>
Fri, 12 Apr 2024 14:27:53 +0000 (15:27 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 Apr 2024 09:53:15 +0000 (10:53 +0100)
commit20a7f79982b5437bc8af44785326c59cf2f77378
treea12b585c8ea960697c7be3fea52c634a7c06976e
parent52cc673b8d085255eacaebbf78525e2f33a9f95c
media: atomisp: Propagate v4l2_mbus_framefmt.field to CSI port sink pad

Most sensor drivers report V4L2_FIELD_NONE as v4l2_mbus_framefmt.field
value. Propagate this to the v4l2_mbus_framefmt for the CSI port to pass
the link validation done by media_pipeline_start().

Keep the v4l2_mbus_framefmt.field for the source pad of the CSI port
as V4L2_FIELD_ANY to match the ISP sink pad.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_csi2.c