media: nxp: imx8-isi: Allow num_sources to be greater than num_sink
authorFrank Li <Frank.Li@nxp.com>
Thu, 22 May 2025 17:56:40 +0000 (13:56 -0400)
committerHans Verkuil <hverkuil@xs4all.nl>
Wed, 18 Jun 2025 07:21:59 +0000 (09:21 +0200)
commit2021b8d51cdb514da22f2c9bc05e123d19277d1d
treeff115554b0e3a067609ac42c25663bdbb9a55045
parentc4891010d8194bda9c268cc9330ba9e342d7c4b6
media: nxp: imx8-isi: Allow num_sources to be greater than num_sink

Allow num_sources (drvdata: num_channels) to be greater than num_sink
(drvdata: num_ports + 1).

ISI support stream multiplexing, such as differentiates multiple cameras
from a single 2-lane MIPI input, or duplicates input stream into multiple
outputs. So num_channels may be greater than num_ports at some platform.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250522-8qxp_camera-v5-2-d4be869fdb7e@nxp.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c