media: ipu6: Fix CSI-2 port count for IPU7.5 and IPU8
Subsystems (2)
PATCH 1/1 media: ipu6: Fix CSI-2 port count for IPU7.5 and IPU8
Set the CSI-2 port count to three for IPU7.5 and IPU8 instead of four, so the driver registers only the available CSI-2 ports.
Signed-off-by Yew, Chang Ching <[email protected]>
--- drivers/media/pci/intel/ipu6/ipu6.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/media/pci/intel/ipu6/ipu6.c +4 -1
@@ -399,10 +399,13 @@ static void ipu6_internal_pdata_init(struct ipu6_device *isp) isys_ipdata.csi2.nports =4 ; } +if (IS_IPU7P5 (isp)) + isys_ipdata.csi2.nports =3 ; +if (IS_IPU8 (isp)) { isys_ipdata.csi2.gpreg =IPU8_IS_IO_CSI2_GPREGS_BASE ; isys_ipdata.csi2.gpreg_stride =IPU8_IS_IO_CSI2_GPREGS_STRIDE ; - isys_ipdata.csi2.nports =4 ; + isys_ipdata.csi2.nports =3 ; } }
Signature · 1 line
2.54.0
Sakari Ailus
maintainerHi Chang Ching,
Quoted 4 lines · Chang Ching
Set the CSI-2 port count to three for IPU7.5 and IPU8 instead of four, so the driver registers only the available CSI-2 ports.
Signed-off-by Yew, Chang Ching <[email protected]>
I'll add Fixes: and Cc: stable here, too.
Can you either add quotes around your name or remove the comma in the future? At least b4 in Debian leaves just the tag there, removing everything after semicolon.
Quoted 23 lines
--- drivers/media/pci/intel/ipu6/ipu6.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/media/pci/intel/ipu6/ipu6.c +4
-1@@ -399,10 +399,13 @@ static void ipu6_internal_pdata_init(struct ipu6_device *isp) isys_ipdata.csi2.nports =4 ; } +if (IS_IPU7P5 (isp)) + isys_ipdata.csi2.nports =3 ; +if (IS_IPU8 (isp)) { isys_ipdata.csi2.gpreg =IPU8_IS_IO_CSI2_GPREGS_BASE ; isys_ipdata.csi2.gpreg_stride =IPU8_IS_IO_CSI2_GPREGS_STRIDE ; - isys_ipdata.csi2.nports =4 ; + isys_ipdata.csi2.nports =3 ; } }
Signature · 3 lines
Regards, Sakari Ailus