]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: synopsys: Fix IPI using hardcoded datatype
authorGuoniu Zhou <guoniu.zhou@oss.nxp.com>
Tue, 19 May 2026 02:07:38 +0000 (10:07 +0800)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 20 May 2026 11:28:37 +0000 (14:28 +0300)
commit8ba166ff7c921da610376156d7c0a5fc985fa983
treef15ce01e898e597a52515aaeba511ef1652952be
parent4f6f28ff24709710c08557c127b3e4c3fb1b4159
media: synopsys: Fix IPI using hardcoded datatype

The imx93_csi2rx_dphy_ipi_enable() function configures the IPI datatype
using csi2->formats->csi_dt, which is initialized during probe but never
updated in set_fmt(). This causes the IPI to always use the probe-time
default datatype, ignoring the actual media bus format negotiated at
runtime. When userspace requests a different format, the IPI hardware is
configured with the wrong datatype, resulting in incorrect image output.

Fix by updating csi2->formats in the set_fmt callback to reflect the
currently negotiated format, ensuring the IPI configuration matches the
runtime datatype.

Fixes: ec40b431f0ab ("media: synopsys: csi2rx: add i.MX93 support")
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Guoniu Zhou <guoniu.zhou@oss.nxp.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/media/platform/synopsys/dw-mipi-csi2rx.c